×

python · level 1 · unit 2 · lesson 1

  1. meet it
  2. guess first
  3. your turn
  4. fix it
  5. nailed it

Tap a green word if you get lost.

meet it

A is a box with a name on it.

You put something in the box, write a name on the label, and from then on you say the name to get it back.

Whatever is inside the box is called its . Here the box is called name, and its value is the string "Sam".

To get the value back, use the name with no quotes, like print(name). Spell it the same way every time, or Python gives you a NameError.

name = "Sam"

Read the = as “put into”, not “equals”.