[Tutor] While Loops: Coin Flip Game :p:

bob gailer bgailer at gmail.com
Wed Nov 17 05:00:22 CET 2010


Just for the heck of it:

heads = sum(random.randrange(2) for i in range(100))

-- 
Bob Gailer
919-636-4239
Chapel Hill NC



More information about the Tutor mailing list