Quotes help make search much faster. Example: "Practice Makes Perfect"

Saturday, December 1, 2012

Codecademy: List Comprehension Syntax


#sample solution


even_squares = [x**2 for x in range(1,11) if x**2 % 2 == 0]
print even_squares

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts