Advertisement
bobhig

Coin toss

Jan 22nd, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. #Print random coin toss
  2.  
  3. import random
  4.  
  5. coin_sides = ["heads","tails"]
  6.  
  7. def coin_toss():
  8.     print(random.choice(coin_sides))
  9.  
  10. coin_toss()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement