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
lesson4.py
×
THEEBUG
›
lesson4.py
1
nums
=
[
1
,
2
,
3
,
4
,
5
]
2
doubled
=
[
n
______
2
for
n
in
nums
]
3
4
print
(
doubled
)
5
#
[
2
,
4
,
6
,
8
,
10
]
TERMINAL
PROBLEMS
OUTPUT
DEBUG CONSOLE
⊕
⋮
$
[system] Theebug ready. Happy coding!
Code Blocks
Drag blocks into the drop zones above
4 blocks available
*
+
-
/
Game Panel
0:00
0 pts
Level 4 of 9
List Comprehensions
0/1 slots correct
Objective
Complete the list comprehension so it doubles every number
Expected Output
[2, 4, 6, 8, 10]
Debug says:
I need to DOUBLE every number in the list! Which operator multiplies a value? Drag it between n and 2! ✖️
Debug the Worm