import random
cpu_list = ['가위', '바위', '보']
cpu = random.choice(cpu_list)
user = input()
if cpu == user:
    print("비겼다!")
elif user == "가위" and cpu == "보":
    print("이겼다")
elif user == "바위" and cpu == "가위":
    print("이겼다")
elif user == "보" and cpu == "바위":
    print("이겼다.")
else:
    print("졌다.")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: