[Tutor] Number Sum Up
Thu, 31 Aug 2000 10:11:32 -0700 (PDT)
Something like the following (in a .py file) should
n = n+float(raw_input("Please enter a number: "))
print "The summation of your input: ", n
--- "Michael J. Boylan" <email@example.com> wrote:
> I am just starting to learn python, and am stuck on
> a simple programming
> "Write a program that continually reads in numbers
> from the user and adds
> them together until the sum reaches 100".
> Seems simple, but I can't get it. Any help?
> Tutor maillist - Tutor@python.org
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!