Re: [Tutor] Coin game

2011-11-28 Thread bob gailer
On 11/27/2011 7:43 PM, Guess?!? wrote: Two players take turns flipping a fair coin. The game ends when the same outcome occurs on three flips in a row. Whichever player flipped the coin last, wins. For example: Here's my version of a simple compact program. import random N = 10 tosses = '

Re: [Tutor] Coin game

2011-11-27 Thread Dave Angel
On 11/27/2011 07:43 PM, Guess?!? wrote: Hello All, I am learning python and hence was writing code for school assignments I could find online. I wrote my solution for this problem below. Please find it attached. I would like someone to review and give me comments on it. Basically improvements/

[Tutor] Coin game

2011-11-27 Thread Guess?!?
Hello All, I am learning python and hence was writing code for school assignments I could find online. I wrote my solution for this problem below. Please find it attached. I would like someone to review and give me comments on it. Basically improvements/ comments to make it more efficient proble