Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. if user_choice == "rock":
  2. if computer_choice == "paper":
  3. return f"{name} had {user_choice} and computer had {computer_choice}, hence computer wins."
  4. if computer_choice == "scissors":
  5. return f"{name} had {user_choice} and computer had {computer_choice}, hence {name} wins."
  6. elif user_choice == "paper":
  7. if computer_choice == "scissors":
  8. return f"{name} had {user_choice} and computer had {computer_choice}, hence computer wins."
  9. if computer_choice == "rock":
  10. return f"{name} had {user_choice} and computer had {computer_choice}, hence {name} wins."
  11. elif user_choice == "scissors":
  12. if computer_choice == "rock":
  13. return f"{name} had {user_choice} and computer had {computer_choice}, hence computer wins."
  14. if computer_choice == "paper":
  15. return f"{name} had {user_choice} and computer had {computer_choice}, hence {name} wins."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement