one in a code, I'm lost!
Thanks
- Original Message -
From: "Marc Poulin" <[EMAIL PROTECTED]>
To:
Sent: Thursday, May 04, 2006 12:08 AM
Subject: Re: [Tutor] counting number of inputs (EARLIER VERSION SENT
ACCIDENTLY)
>
> Michelle:
>
> Are you famili
the inputs
>
> Good luck.
>
> > # Add number of per hour
> > numbers = []
> > stop = None
> > while stop != "-1":
> > number = int(raw_input("Run number(-1 to end)
> : "))
> > numbers.append(number)
> > print
> >
n numbers:
> print number
>
>
>
>
> - Original Message -
> From: "Python" <[EMAIL PROTECTED]>
> To: "MICHELLE EVANS" <[EMAIL PROTECTED]>
> Cc: "Tutor Python"
> Sent: Wednesday, May 03, 2006 12:18 PM
> Subj
his to ask the user to enter their number per each run. That is
why
> > I have 5 different input numbers. I need this break if a -1 is entered.
> > Would I use "if-else" to break this if -1 is entered? I need to be able
to
> > count the number of lines entered.
> &g
ssage -----
> From: "Python" <[EMAIL PROTECTED]>
> To: "MICHELLE EVANS" <[EMAIL PROTECTED]>
> Cc: "Tutor Python"
> Sent: Tuesday, May 02, 2006 7:56 PM
> Subject: Re: [Tutor] counting number of inputs
>
>
> > On Tue, 2006-05-02 at
I use "if-else" to break this if -1 is entered? I need to be able to
> count the number of lines entered.
>
> Thanks
> Rick
>
>
> - Original Message -
> From: "Python" <[EMAIL PROTECTED]>
> To: "MICHELLE EVANS" <[EMAIL PROTECT
On Tue, 2 May 2006, MICHELLE EVANS wrote:
> I am trying to count the number of times a positive number is entered
> from the user. But, the program must stop after 5 user inputs or a
> negative number.
That seems like a really arbitrary and silly thing to do, but ok.
So... what question do
On Tue, 2006-05-02 at 19:25 -0400, MICHELLE EVANS wrote:
> I am trying to count the number of times a positive number is entered
> from the user. But, the program must stop after 5 user inputs or a
> negative number.
>
> Can anyone help.
Yes, but you need to help yourself also.
Do you know how
I am trying to count the number of times a positive
number is entered from the user. But, the program must stop after 5 user
inputs or a negative number.
Can anyone help.
Rick
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/