bobhig

Coin toss

Jan 22nd, 2019
108
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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()
RAW Paste Data