Re: [Tutor] powerball

2008-06-12 Thread Marilyn Davis
On Wed, June 11, 2008 9:42 pm, max baseman wrote: > hello and thank you everyone for your help. I apologize for my ignorance > when it came to knowledge of what the powerball is it is not as wide > spread as i had thought it was > > the powerball is a form of lottery their are 5 numbers between 1

[Tutor] powerball

2008-06-12 Thread max baseman
hello and thank you everyone for your help. I apologize for my ignorance when it came to knowledge of what the powerball is it is not as wide spread as i had thought it was the powerball is a form of lottery their are 5 numbers between 1 and 55, and then their is the powerball between 1 and

Re: [Tutor] powerball

2008-06-11 Thread bob gailer
max baseman wrote: as a fun little project i scripted a powerball program. it seems to have a bug in it that i cant find. To echo Kent: tell us the expected outcome and why you think there is a bug. Also please add a comment explaining the "magic" number 146107962. Also add a comment about "pow

Re: [Tutor] powerball

2008-06-11 Thread Marilyn Davis
On Wed, June 11, 2008 9:58 am, max baseman wrote: Hi Max, Here's your code with the indents preserved. I'll make my comments with >'s. from random import randrange wins=0 win=[] count =0 while count !=5: > To loop 5 times it is better to use: > for count in range(5): > stuff you want

Re: [Tutor] powerball

2008-06-11 Thread Kent Johnson
On Wed, Jun 11, 2008 at 12:58 PM, max baseman <[EMAIL PROTECTED]> wrote: > as a fun little project i scripted a powerball program. it seems to have a > bug in it that i cant find. What does it do? What do you expect it to do? Kent ___ Tutor maillist -

[Tutor] powerball

2008-06-11 Thread max baseman
as a fun little project i scripted a powerball program. it seems to have a bug in it that i cant find. from random import randrange wins=0 win=[] count =0 while count !=5: number=randrange(55)+1 win.append(number) count=count+1 powerball=randrange(42)+1 count=0 win.sort() while coun