Created
October 7, 2016 20:19
-
-
Save tosho/2ff27fdb1e5762ea3354496c1ce0702a to your computer and use it in GitHub Desktop.
Heads and Tails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
n = input('enter "H" or "T": ') | |
if n.count('H') > n.count('T'): | |
print('H wins!') | |
elif n.count('H') < n.count('T'): | |
print('T wins!') | |
else: | |
print('Draw!') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment