Write a program to find the winner of each round of game based on the shape of players chose
from random import choice
shapes = ['circle', 'triangle', 'square', 'elipse', 'diamond', 'rectangle', 'star', 'heart']
print(', '.join(shapes))
secret_shape = choice(shapes)
user_shape = (input("Your choice: ").strip()).lower()
while user_shape != secret_shape:
print("You are wrong!")
user_shape = (input("Your choice: ").strip()).lower()
print("Congratulations! You won!")
Comments
Leave a comment