import random
chose = ["rock","paper","scissor"]
def play(youChose):
computerChose = random.choice(chose)
print('you:',youChose,',computer:',computerChose)
if youChose == computerChose:
return 'Draw'
elif youChose == 'rock' and computerChose == 'paper':
return "computer won"
elif youChose == 'rock' and computerChose == 'scissor':
return "you won"
elif youChose == 'paper' and computerChose == 'rock':
return 'you won'
elif youChose == 'paper' and computerChose == 'scissor':
return 'computer won'
elif youChose == 'scissor' and computerChose == 'rock':
return 'computer won'
elif youChose == 'scissor' and computerChose == 'paper':
return 'you won'
you: rock ,computer: paper
'computer won'
you: paper ,computer: scissor
'computer won'
you: scissor ,computer: paper
'you won'
you: scissor ,computer: paper
'you won'
you: rock ,computer: scissor
'you won'
you: rock ,computer: rock
'Draw'