Re: Beginner Programmer Question

2006-06-26 Thread I V
On Mon, 26 Jun 2006 10:47:58 -0700, [EMAIL PROTECTED] wrote: > whats the difference between raw input and input? 'input' is used to ask the user to input a python expression, which is then run, and 'input' returns the result of executing that expression. For example: (define a function which pri

Re: Beginner Programmer Question

2006-06-26 Thread Terry Reedy
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > whats the difference between raw input and input? *That* you should look up in the builtin functions section of chapter 1? of the library reference manual. Chapter 2 of the same on builtin types is also important to skim and be a

Re: Beginner Programmer Question

2006-06-26 Thread [EMAIL PROTECTED]
Tim Chase wrote: > > bigone = 100 > > > > number = input("Whats the first number?") > > number2 = input ("Whats the second number?") > > nu3 = number+number2 > > while nu3 < bigone: > > print ("Not there yet, next number please") > > > > print "Finally there!" > > > > thats what i thought mayb

Re: Beginner Programmer Question

2006-06-26 Thread Tim Chase
> bigone = 100 > > number = input("Whats the first number?") > number2 = input ("Whats the second number?") > nu3 = number+number2 > while nu3 < bigone: > print ("Not there yet, next number please") > > print "Finally there!" > > thats what i thought maybe it was...but after the first two nu

Re: Beginner Programmer Question

2006-06-26 Thread Michael Goettsche
[EMAIL PROTECTED] wrote: > I am doing alot of reading and trying to teach myself how to program. > I can not figure out how to make "Write a program that continually > reads in numbers from the user and adds them together until the sum > reaches 100." this work. If someone could show me the correct

Re: Beginner Programmer Question

2006-06-26 Thread Claudio Grondi
[EMAIL PROTECTED] wrote: > [EMAIL PROTECTED] wrote: > >>Claudio Grondi wrote: >> >>>[EMAIL PROTECTED] wrote: >>> I am doing alot of reading and trying to teach myself how to program. I can not figure out how to make "Write a program that continually reads in numbers from the user and a

Re: Beginner Programmer Question

2006-06-26 Thread [EMAIL PROTECTED]
Rune Strand wrote: > [EMAIL PROTECTED] 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.

Re: Beginner Programmer Question

2006-06-26 Thread Rune Strand
[EMAIL PROTECTED] 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 loo

Re: Beginner Programmer Question

2006-06-26 Thread SuperHik
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. > > ;-) > I d

Re: Beginner Programmer Question

2006-06-26 Thread SuperHik
[EMAIL PROTECTED] wrote: > I am doing alot of reading and trying to teach myself how to program. > I can not figure out how to make "Write a program that continually > reads in numbers from the user and adds them together until the sum > reaches 100." this work. If someone could show me the correct

Re: Beginner Programmer Question

2006-06-26 Thread [EMAIL PROTECTED]
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. > > ;-)

Re: Beginner Programmer Question

2006-06-26 Thread Rune Strand
> > 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. ;-) -- http://mail.python.org/mailman/

Re: Beginner Programmer Question

2006-06-26 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote: > Claudio Grondi wrote: > > [EMAIL PROTECTED] wrote: > > > I am doing alot of reading and trying to teach myself how to program. > > > I can not figure out how to make "Write a program that continually > > > reads in numbers from the user and adds them together until the s

Re: Beginner Programmer Question

2006-06-26 Thread [EMAIL PROTECTED]
Claudio Grondi wrote: > [EMAIL PROTECTED] wrote: > > I am doing alot of reading and trying to teach myself how to program. > > I can not figure out how to make "Write a program that continually > > reads in numbers from the user and adds them together until the sum > > reaches 100." this work. If

Re: Beginner Programmer Question

2006-06-26 Thread Claudio Grondi
[EMAIL PROTECTED] wrote: > I am doing alot of reading and trying to teach myself how to program. > I can not figure out how to make "Write a program that continually > reads in numbers from the user and adds them together until the sum > reaches 100." this work. If someone could show me the correct

Beginner Programmer Question

2006-06-26 Thread kydavis77
I am doing alot of reading and trying to teach myself how to program. I can not figure out how to make "Write a program that continually reads in numbers from the user and adds them together until the sum reaches 100." this work. If someone could show me the correct code so i can learn from that it