Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. user1 = input("player1: ")
  2. user2 = input("player2: ")
  3. if user1 == "paper" and user2 == "rock":
  4. print(user1 + " wins")
  5. elif user1 == "paper" and user2 == "scissors":
  6. print(user2 + " wins")
  7. elif user1 == "rock" and user2 == "paper":
  8. print(user2 + " wins")
  9. elif user1 == "rock" and user2 == "scissors":
  10. print(user1 + " wins")
  11. elif user1 == "scissors" and user2 == "paper":
  12. print(user1 + " wins")
  13. elif user1 == "scissors" and user2 == "rock":
  14. print(user2 + " wins")
  15. elif user1 == "paper" and user2 == "paper":
  16. print("game draws")
  17. elif user1 == "rock" and user2 == "rock":
  18. print("game draws")
  19. elif user1 == "scissors" and user2 == "scissors":
  20. print("game draws")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement