Try It. help


#1



https://www.codecademy.com/courses/python-beginner-en-KAgt5/3/3?curriculum_id=4f89dab3d788890003000096#


When I use the following code it gives me a syntax error
"File "python", line 2 print filter(lambda x: 30 <= x <=70, squares)
SyntaxError: invalid syntax


Looking at the code it should take the list from squares and filter it.

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


#2

Just saw I was missing a bracket in the code...


#3