For your lists


#1



https://www.codecademy.com/courses/python-beginner-en-cxMGf/1/5?curriculum_id=4f89dab3d788890003000096#


Oops, try again. It looks like your code did not print 49 (7 squared).

I keep getting this message and 7 is not squared
why??


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

print "This list contains: "

for num in numbers:
    print num**num,
# Add your loop below!


#2

because square means 7^2, which is 49. What you did is: 7 * 7 * 7 *7 * 7 * 7 * 7, slight difference

and you print all the squares on the same line because of the , at the end of your print statement, remove , so the squared numbers are printed on separate lines


#3

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