Okay, I'll be honest right up front, I'm in a first year Python class and this is a question I'm supposed to write a program for. Here's the question:
"Write a program that continually reads in numbers from the user and adds them together until the sum reaches 100."
Here's what I have so far:
print "Now, we're going to add up some numbers." print number = input("Please enter a number: ") if number < 100: print input("Total is not yet over 100, enter another number: ") else: print ("That's it, you're done!")
I can't figure out how to capture what the user inputs, and then keep adding to it. Please, just give me a clue, or a hint where to look for the answer.
Thank you, I hope to find tolerance here for beginners.