Use a variable
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version.
This one builds on a lesson you haven't finished yet. Do that lesson first:
Python Basics · Variables →
Use a variable
A variable is a named box that holds a value. name = "Sam" puts Sam in the box name. Then print(name) shows what is inside.
Difficulty 1/5 · 100 coins + a small bonus on first completion today
Put Sam in a box called name, then print(name).
Click Run to see the output here.