Multiply two variables
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 →
Multiply two variables
The same works with *: price * qty.
Difficulty 1/5 · 100 coins + a small bonus on first completion today
Set price to 3 and qty to 4. Print price * qty. It shows 12.
Click Run to see the output here.