Commit b3c63aae by BellCodeEditor

save project

parent b5c6bbbe
Showing with 16 additions and 0 deletions
player_punch_out=input("punch out")
print("player punch out:"+player_punch_out)
import random
list1=['stone','scissors','cloth']
computer=random.choice(list1)
print("computer punch out:"+computer)
if player_punch_out in list1:
if player_punch_out==computer:
print("tie")
elif (player_punch_out=='scissors'and computer=='cloth')or(player_punch_out=='stone'and computer=='scissors')or(player_punch_out=='cloth'and COM=='stone'):
print('you win')
else :
print("lose")
else:
print('input error')
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment