Share your repls and programming experiences

← Back to all posts
coin toss game
Kr812345

coin=["heads","tails"]
import random
result = random.choice(coin)

guess= input("choose which one do you want to select: ")

if guess==result:
print("you have won the game")
else:
print("you have lost the game")

Voters
Kr812345