You are on page 1of 1

rock = '''

_______
---' ____)
(_____)
(_____)
(____)
---.__(___)
'''

paper = '''
_______
---' ____)____
______)
_______)
_______)
---.__________)
'''

scissors = '''
_______
---' ____)____
______)
__________)
(____)
---.__(___)
'''

#Write your code below this line 👇


import random
choose = input("What do you choose? Type 0 for Rock, 1 for Paper or 2 for
Scissors.\n")
co = int(choose)
choices = [rock, paper, scissors]
print(f"Your choice is:\n{choices[co]}")
print("Computer chose:")
num = random.randint(0,2)
comp_cho = choices[num]
print(comp_cho)
a = "You win"
b = "You lose"
c = "It is a draw"
if co == 2 and num == 1:
print(a)
if co == 2 and num == 2:
print(c)
if co == 2 and num == 0:
print(b)
if co == 1 and num == 1:
print(c)
if co == 1 and num == 2:
print(b)
if co == 1 and num == 0:
print(a)
if co == 0 and num == 0:
print(c)
if co == 0 and num == 2:
print(a)
if co == 0 and num == 1:
print(b)

You might also like