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

Thursday, November 29, 2012

Codecademy: For your lists


#sample solution


numbers  = [7, 9, 12, 54, 99]

print "This list contains: ",
for num in numbers:
    print num,
print #for nice printing
print " The numbers squared are: ",
for num in numbers:
print num ** 2,

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts