ACTIVITY 32 / 50
Try as many times as you needReady-made tools
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))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
- Read the last line of the error message.
- Find the indicated line. Check quotes, parentheses and indentation.
- Change one thing and run again.
main.py
4 spaces
Your draft stays in this browser.
Result
PythonYour program’s output will appear here. Click Run.
Мой профиль