Advertisement
zhongnaomi

coin flip def

Jan 22nd, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. import random
  2.  
  3. def coin_flip():
  4.  
  5.     coin_side = ["head", "tail" ]
  6.     print(random.choice(coin_side))
  7.  
  8. coin_flip()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement