Re: [Tutor] counting number of inputs (EARLIER VERSION SENT ACCIDENTLY)

2006-05-04 Thread MICHELLE EVANS
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

Re: [Tutor] counting number of inputs (EARLIER VERSION SENT ACCIDENTLY)

2006-05-03 Thread Marc Poulin
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 > >

Re: [Tutor] counting number of inputs (EARLIER VERSION SENT ACCIDENTLY)

2006-05-03 Thread Python
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

Re: [Tutor] counting number of inputs (EARLIER VERSION SENT ACCIDENTLY)

2006-05-03 Thread MICHELLE EVANS
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

Re: [Tutor] counting number of inputs (EARLIER VERSION SENT ACCIDENTLY)

2006-05-03 Thread Python
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

Re: [Tutor] counting number of inputs

2006-05-03 Thread Python
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

Re: [Tutor] counting number of inputs

2006-05-02 Thread Danny Yoo
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

Re: [Tutor] counting number of inputs

2006-05-02 Thread Python
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

[Tutor] counting number of inputs

2006-05-02 Thread MICHELLE EVANS
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/