0Pricing
Coding for Kids · Lesson

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

  1. The Rules
  2. Computer Picks
  3. Deciding the Winner
  4. Play Again
← Back to Coding for Kids