Try it!



squares=[x**2 for x in range(1,11)]
print filter(lambda x:(x**2>=30) and (x**2<=70),squares)

plz tell me how wrong is this code

Replace this line with your code.


same problem as you had in a earlier exercise? You want to see if x is greater then 30 and smaller then 70, and if so print out the square of x


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.