@madmonster/

Endless heads or tails

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import random

print('This a game of endless heads or tails made by MadMonster(AKA, Danche Choi)')

while True:
  bet = input('Heads or tails \n')
  sc = 0
  choices = ['heads' , 'tails']
  an = random.choice(choices)
  
  if an == bet:
   sc = sc + 1
print('Congratulations! You have %s points!' % sc)
  
  
  if an != bet:
  print('Bad luck! (hope that you get lucky next round)')
  sc = sc - 1