Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- import time
- #Picking up the coin array
- comment = ["Finding the coin...", "Saving the world from a massive plague...", "Actually flipping a coin...", "Introducing Bias...", "Hacking your computer...", "Entering the matrix...", "Making Python bite...", "Giving all your details to the NSA...", "Thinking of more phrases...", "Stealing your bank account details...", "Planning mission to SePT-A 51..."]
- #Coin flip array
- coin = ["Heads", "Tails"]
- #Flip program
- def flipit(random, flip, time, comment, repeat):
- time.sleep(1)
- print("It begins...")
- print("\n")
- for x in range(0, 10):
- print("Flip number", x + 1)
- print(random.choice(comment))
- time.sleep(1)
- print(random.choice(coin),"\n")
- time.sleep(2)
- print("\n")
- from collections import Counter
- counting = []
- cnt = Counter(counting)
- cnt
- print("Type startup(time) to begin flipping coins again")
- #Startup routine
- def startup(time):
- #Coundown
- print("Coins will start falling in...\n5")
- time.sleep(1)
- print("\n4")
- time.sleep(1)
- print("\n3")
- time.sleep(1)
- print("\n2")
- time.sleep(1)
- print("\n1")
- time.sleep(1)
- print("\n")
- flipit(random, flip, time, comment, repeat)
- startup(time)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement