Advertisement
KaySawbridge

Random Coin Flip

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