Problem with printing


Oops, try again. It looks like you didn't print the correctly filtered list to the console.

It prints and everything...not sure what is the problem

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


the and operator in python is simply an and keyword


Thanks, for your helped -- problem solved!