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

Ready-made tools

Try as many times as you need

Let’s understand

A function does a particular job. You have already called print and len. Arguments inside parentheses provide data. Some functions return a value you can save or pass to another function.

Listen to the explanation

Example

print(abs(-3))
YOUR MISSION

Print the absolute value of -7 using abs.

I need a hint

abs gives the non-negative magnitude of a number.

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.