Using loops to do stuff
Time to try something useful!
total = 0
c = 1
while c <= 900:
total = total + c
c = c + 1
print "the grand total is", total
Ever wanted to know what the value of every number between 1 and 900 added together was? Now is your chance!
Alter the above code so it works out the total of odd numbers ONLY! (not as hard as it sounds, honest!:) )
Output: (clear)











