Practice Python

Beginner Python exercises

02 April 2014

Rock Paper Scissors Solutions

Exercise 8

Make a two-player Rock-Paper-Scissors game. (Hint: Ask for player plays (using input), compare them, print out a message of congratulations to the winner, and ask if the players want to start a new game)

Remember the rules:

Sample solution

Another sample solution uses a clever way of checking the winner:

Enjoying Practice Python?

Explore Yubico
Explore Yubico
comments powered by Disqus