# imports
# variables
world = '🌍🌎🌏'
python = 'Python 🐍'
fire = '🔥'
# Function definitions
# Put code to run under here
print(f'Hello {world}')
print(f'Welcome to {python}')
print(f'{python} is good at maths!')
print(f'{111111111 * 111111111}')
Project 1 — Step 6 of 16
⭐ Step 6 — Create a calculation
➡️ Print the answer to a really big multiplication.
✏️ What to type
Add two more print lines at the bottom:
print(f'{python} is good at maths!')
print(f'{111111111 * 111111111}')
# imports
# variables
world = '🌍🌎🌏'
python = 'Python 🐍'
fire = '🔥'
# Function definitions
# Put code to run under here
print(f'Hello {world}')
print(f'Welcome to {python}')
Tap ▶ Run. You should see:
Hello 🌍🌎🌏
Welcome to Python 🐍
Python 🐍 is good at maths!
12345678987654321
Look at that number! Python multiplied two 9-digit numbers and got a beautiful palindrome (it reads the same forwards and backwards). 🤯
🔍 Tip
Python follows the same math rules you learn at school: Brackets first, then Orders, then Divide and Multiply, then Add and Subtract.
Adapted from Raspberry Pi Foundation — Hello World under CC BY-SA 4.0.