0Pricing
Coding for Kids · Lesson

Computer Picks

Random computer choice.

The Computer's Turn! 🤖

Hi coder! 🤖 In Rock, Paper, Scissors, the COMPUTER needs to pick too! And it should be a surprise, just like a real opponent! 🎲

Let's teach the computer to choose!

print('I am the computer. Let me pick! 🤖')

A List of Choices 📋

First we make a list of the three choices. A list holds many items inside square brackets [ ]! 📋

choices = ['rock', 'paper', 'scissors']
print('My options:', choices)

All lessons in this course

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