Мой профиль
ACTIVITY 10 / 50

Powers and area

Try as many times as you need

Let’s understand

The ** operator raises a number to a power. 3 ** 2 means 3 multiplied by 3. A square’s area is its side length squared. ** and * perform different operations.

Listen to the explanation

Example

print(3 ** 2)
YOUR MISSION

A square garden bed has sides of 5 metres. Print its area using **.

I need a hint

Squaring a number means raising it to power 2.

How to find an error
  1. Read the last line of the error message.
  2. Find the indicated line. Check quotes, parentheses and indentation.
  3. Change one thing and run again.

main.py

4 spaces

Your draft stays in this browser.

Result

Python
Your program’s output will appear here. Click Run.