Home
Tracks
Reset
Help
Theebug — Learn Python by Doing
Light
Explorer
···
▼
THEEBUG
lesson1.py
lesson2.py
lesson3.py
lesson4.py
lesson5.py
lesson6.py
lesson7.py
lesson8.py
lesson9.py
Completed
0/9
Score
0
PY
lesson3.py
×
THEEBUG
›
lesson3.py
1
fruits
=
[
"apple"
,
"banana"
,
"cherry"
]
2
3
for
i
in
range
(
______
(
fruits
)
)
:
4
print
(
fruits
[
i
]
)
TERMINAL
PROBLEMS
OUTPUT
DEBUG CONSOLE
⊕
⋮
$
[system] Theebug ready. Happy coding!
Code Blocks
Drag blocks into the drop zones above
4 blocks available
len
size
count
total
Game Panel
0:00
0 pts
Level 3 of 9
List Length
0/1 slots correct
Objective
Use the correct built-in function to loop through all fruits and print each one
Expected Output
apple
banana
cherry
Debug says:
Python has a built-in function that tells you how many items are in a list. Which one is it? Drag it in front of the parentheses!
Debug the Worm