HomeTracks
Explorer···
THEEBUG
Completed0/9
Score0
PYlesson4.py×
THEEBUGlesson4.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]
$[system] Theebug ready. Happy coding!
Code BlocksDrag blocks into the drop zones above
4 blocks available
*
+
-
/
Game Panel
0:000 pts
Level 4 of 9List 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