#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,
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