Skip to content

Instantly share code, notes, and snippets.

@Zaidos
Last active August 29, 2015 14:07
Show Gist options
  • Save Zaidos/27444ef8fb9a0575fc35 to your computer and use it in GitHub Desktop.
Save Zaidos/27444ef8fb9a0575fc35 to your computer and use it in GitHub Desktop.
Python Coin Flip
import random
def flip():
result = random.randrange(2)
if result == 0:
print "Heads"
else:
print "Tails"
for x in range(0, 10):
flip()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment