← Back to the lesson: Math Operations
Rectangle Area
The exercise
Calculate the area of a rectangle with width = 5 and height = 4.
Area = width * height
Store the result in 'area' and display it.
Starter code
# Rectangle dimensions / Размеры прямоугольника
width = 5
height = 4
# Calculate area / Вычислите площадь
area =
# Display / Выведите
Write the code in the browser and run it — no installation needed.