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
[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
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
[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
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.
;-)
--
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
[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
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
[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
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
[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
[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
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
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
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
15 matches
Mail list logo