🐍 Python Tutorial
# imports

# variables
world = '🌍🌎🌏'
python = 'Python 🐍'
fire = '🔥'

# Function definitions

# Put code to run under here
print(f'Hello {world}')
print(f'Welcome to {python}')

Project 1 — Step 5 of 16

⭐ Step 5 — Operators

Python knows math! You can use these operator signs:

sign what it does
+ add
- subtract
* multiply
/ divide
** exponent (power)

✏️ What to do

Nothing to type this step — just read the table above. Tap ▶ Run to check your program still works.

# imports

# variables
world = '🌍🌎🌏'
python = 'Python 🐍'
fire = '🔥'

# Function definitions

# Put code to run under here
print(f'Hello {world}')
print(f'Welcome to {python}')

The output should be the same as the last step.

🔍 Tip

In the next step, we’ll use these operators to make Python do a big calculation.

Next → Step 6

⬅ Back to Step 4


Adapted from Raspberry Pi Foundation — Hello World under CC BY-SA 4.0.