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

A list of discoveries

Try as many times as you need

Let’s understand

A list stores several items in a particular order. Write them inside square brackets, separated by commas. Text items still need quotation marks. len reports the number of items.

Listen to the explanation

Example

tools = ["cup", "spoon"]
print(len(tools))
YOUR MISSION

Create samples with rock, leaf and water. Print len(samples).

I need a hint

Use three separate items, not one long string.

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.