Commit f598db7a by BellCodeEditor

save project

parent 401fe227
Showing with 14 additions and 2 deletions
...@@ -5,4 +5,16 @@ player_ansser=input("player's:(stong/sizzer/paper)") ...@@ -5,4 +5,16 @@ player_ansser=input("player's:(stong/sizzer/paper)")
#computer #computer
computer_ansser=random.choice(Ansser) computer_ansser=random.choice(Ansser)
print("computer's:"+computer_ansser) print("computer's:"+computer_ansser)
\ No newline at end of file
#compare
if computer_ansser=="stong" and player_ansser=="paper":
print("You win!")
elif computer_ansser=="sizzer" and player_ansser=="stong":
print("You win!")
elif computer_ansser=="paper" and player_ansser=="sizzer":
print("You win!")
elif computer_ansser==player_ansser:
print("We're all win!")
else:
print("You lose.")
\ 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