Add two numbers
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 · Numbers & operators →
Add two numbers
Python can do maths. 2 + 3 becomes 5 before it is printed.
Difficulty 1/5 · 100 coins + a small bonus on first completion today
Use + to show 5. Try print(2 + 3).
Click Run to see the output here.