×

python · level 1 · unit 2 · lesson 2

  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

Put something new in a box and the old thing is gone.

A box holds one value at a time. Store a new value and you the old one, like wiping a whiteboard and writing something fresh.

You can copy a value from one box into another. order = drink puts a copy of what is in drink into order. After that, the two boxes are separate.

The + sign can two strings into one: "pop" + "corn" makes "popcorn". It adds no space, so put one inside the quotes if you need it.

mood = "sleepy"
mood = "happy"
print("I feel " + mood)

Look closely: the space after feel sits inside the quotes.