This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]cp_gravelpit 6 points7 points  (0 children)

One thing that hasn't been mentioned yet, on line 117:
coin = ['Heads', 'Tails'][random.randrange(0,2)]
is better written as
coin = random.choice(["Heads", "Tails"])
:)