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

Visit every discovery

Try as many times as you need

Let’s understand

for can visit list items directly, not just numbers from range. Its variable receives the next item each time. This is useful when you do not need the item’s position.

Listen to the explanation

Example

for color in ["blue", "green"]:
    print(color)
YOUR MISSION

Print every item in tools on a separate line using for.

I need a hint

Write for tool in tools: and use tool inside the block.

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.