ACTIVITY 25 / 50
Try as many times as you needA list of discoveries
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))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
- 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.
Мой профиль