Advertisement
Mori007

function coinflipper

May 5th, 2019
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. import random # import random
  2.  
  3. def coin_flipper(): # function random
  4. coin = random.choice(["head","tail"]) # pick the choice
  5. print(coin)
  6.  
  7. coin_flipp() # call function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement