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

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 code

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 someone

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 sum

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. ;-) --

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. ;-) thanks for

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 code

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 don't think

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 loop when the sum

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.argv[1] and int() and

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 adds them together until

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 code

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 numbers it just

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 maybe it was...but after the first

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