Sorry the code should have been as follows. It seems the tabs did not paste properly when copied from my editor. ######################################## total = 0 for i in range(100): total = total + input("next number please:") print "The sum is now " , total ######################################## Michael Schmitt