[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/

[Tutor] Fw: counting number of inputs

2006-05-03 Thread MICHELLE EVANS
gt; count the number of lines entered.  I also need to print the run number with the highest and lowest input number.> > Thanks, I'm lost> Rick> - Original Message - From: MICHELLE EVANS To: tutor@python.org Sent: Tuesday, May 02, 2006 7:25 PM Subject: counting number of

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

2006-05-03 Thread MICHELLE EVANS
put("Run number(-1 to end) : ")) numbers.append(number) print for number in numbers: print number - Original Message - From: "Python" <[EMAIL PROTECTED]> To: "MICHELLE EVANS" <[EMAIL PROTECTED]> Cc: "Tutor Python" S

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

2006-05-04 Thread MICHELLE EVANS
first entered value: 1 > second entered value: 2 > third entered value: 3 > fourth entered value: 4 > fifth entered value: 5 >RESULT: > returned list contains [1,2,3,4,5] > """ > if __name__ == "__main__": > print getInputs() > >