def f(L): return [x*x for x in L if x%2 == 1] carre = f([0,1,2,3,4,5,6,7,8,9])