Thank you very much! Here it is the final version: ----- from time import sleep sum = 0 sum_stop = 100 while sum < 100: num = input("Please enter the number: ") sum = sum+num if sum < 100: print "The sum is", sum else: print "The sum is > 100 and it is", sum print sleep(10) ----- Best regards.