Deciding the Winner
Compare choices.
Who Wins? 🏆
Hi judge! ⚖️ Now the exciting part: comparing the player's pick to the computer's pick to find the WINNER! 🏆
We'll use if statements to decide!
print('Let me see who wins! 🤔')First, Check for a Tie 🤝
If both picked the SAME thing, it's a tie! We check this first with ==. 🤝
player = 'rock'
computer = 'rock'
if player == computer:
print('It is a tie! 🤝')All lessons in this course
- The Rules
- Computer Picks
- Deciding the Winner
- Play Again