Re: [Tutor] Random in loop

2006-01-14 Thread ZIYAD A. M. AL-BATLY
On Sat, 2006-01-14 at 17:52 -0800, ryan luna wrote: > Hello, Im kinda stuck on something in the book Python > Programming. > The "Challenage" is to make a progam that flips a coin > 100 times and then tells you the number of heads and > tails. > here is what i have so far, > Code: > > import rando

Re: [Tutor] Random in loop

2006-01-14 Thread ryan luna
Thank you alot ^^ so simple and i knew it, but last time i tried it i got an error on the =, most have been making a stupid mistake --- "ZIYAD A. M. AL-BATLY" <[EMAIL PROTECTED]> wrote: > On Sat, 2006-01-14 at 17:52 -0800, ryan luna wrote: > > Hello, Im kinda stuck on something in the book > Pyt

[Tutor] Random in loop

2006-01-14 Thread ryan luna
Hello, Im kinda stuck on something in the book Python Programming. The "Challenage" is to make a progam that flips a coin 100 times and then tells you the number of heads and tails. here is what i have so far, Code: import random coin = 0 heads = 0 tails = 0 heads_tails = random.randrange(2) wh