Advertisement
Antypas

Untitled

Apr 9th, 2020
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. import random
  2. def coin_flip():
  3.     num = random.randint(0,1)
  4.     if num == 1:
  5.         print("Heads")
  6.     else:
  7.         print("Tails")
  8.  
  9. coin_flip()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement