Beginner Programmer Question

Rune Strand rune.strand at gmail.com
Mon Jun 26 13:45:50 EDT 2006


kydavis77 at gmail.com wrote:
> Rune Strand wrote:
> > >
> > > I am doing alot of reading, and the problem didnt come with an answer.
> > > I dont understand how to get it to continually input numbers and add
> > > all those together
> >
> > Use while, raw_input, sys.argv[1] and int() and break the loop when the
> > sum is above 100.
> >
> > ;-)
>
> thanks for the help..but i am extremley new and what you said makes no
> sense to me

In the code you posted above here: Move the input into the while loop.
You may prefer raw_input() to input().

I don't want to write the code for you ;-)




More information about the Python-list mailing list