Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
526 B
1
Indexable
Never
import random
pick = int(input("pick 1 for heads or 2 for tials"))

if pick == 1:
        print("you picked heads")

if pick == 2:
        print("you picked tials")





a = random.randint(1, 2)

if a == 2 and pick == 2:
        print("you win coin flipped on tials")

if  a == 1 and pick == 2:
        print("you lose coin did not flip on tials")

if a == 1 and pick == 1:
        print("you win coin flipped on heads")

if a == 2 and pick == 1:
        print("you lose coin did not land on heads")
Leave a Comment