So far I have this and it only works for the first 3 numbers you enter because I don't know the shortcut to having it request and adding more input and I'm definitely not going to keep writing the same lines over and over infinite amount of times, Partly because I'm lazy but mostly because its impossible lol. Oh and if anyone wants to hear something humorous it took me like 5 minutes to find out where to put my code embarrassing.

So if anyone has any suggestions on how I could use a shortcut or better organize my code or any helpful tips whatsoever they will be greatly appreciated.

- Code: Select all
`print "This program will allow you to add numbers until you reach 100."`

# Variables

# a=first number

# b=second number

# c=third number

a = input("Please enter a number less than 100 to begin: ")

while a > 99:

a = input("It must be less than 100. Try again: ")

if a < 100:

b = input("Good choice. Now add another: ")

while b+a > 100:

b = input("Too high, try again: ")

if b+a < 100:

print "You now have", b+a

c = input("Add another: ")

while c+b+a > 100:

c = input("Too high, try again: ")

if c+b+a == 100:

print "Great Job!"

if b+a == 100:

print "Great Job!"