LearnPy Hub
← If…Else problems
Hard

Rock Paper Scissors

Read two moves (rock, paper or scissors) for player 1 and player 2. Print Player 1, Player 2 or Draw.

Input

Two lines.

Output

The winner.

Sample 1

Input
rock
scissors
Output
Player 1

Sample 2

Input
rock
paper
Output
Player 2
solution.py
Output appears here
Rock Paper Scissors · Python practice problem · LearnPy Hub