# imports # variables world = '🌍🌎🌏' python = 'Python 🐍' fire = '🔥' # Function definitions # Put code to run under here print(f'Hello')
Project 1 — Step 2 of 16
⭐ Step 2 — Variables
A variable is a box that holds a value. Picking a name for the box that makes sense helps you remember what’s inside.
Let’s give our program three boxes, each holding some emojis.
✏️ What to type
Under the # variables line, add three boxes:
world = '🌍🌎🌏'
python = 'Python 🐍'
fire = '🔥'
# imports # variables # Function definitions # Put code to run under here print(f'Hello')
Tap ▶ Run. The output is still just Hello — we made the
boxes but haven’t used them yet. That’s coming next.
🔍 Tip
The quotes around the emojis tell Python “these are letters and symbols, not a box name.”
Adapted from Raspberry Pi Foundation — Hello World under CC BY-SA 4.0.