import random

cpu = random.choice(['가위', '바위', '보'])
user = input()

if cpu == user:
    print('비겼습니다.')
elif cpu == '가위' and user == '바위':
    print('이겼습니다.')
elif cpu == '바위' and user == '보':
    print('이겼습니다.')
elif cpu == '보' and user == '가위':
    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: