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
lesson2.py
×
THEEBUG
›
lesson2.py
1
def
add
(
a
,
b
)
:
2
return
______
3
4
result
=
add
(
3
,
7
)
5
print
(
result
)
#
10
TERMINAL
PROBLEMS
OUTPUT
DEBUG CONSOLE
⊕
⋮
$
[system] Theebug ready. Happy coding!
Code Blocks
Drag blocks into the drop zones above
4 blocks available
a
+
b
a
-
b
a
*
b
a
/
b
Game Panel
0:00
0 pts
Level 2 of 9
Functions
0/1 slots correct
Objective
Complete the "add" function so it returns the sum of a and b (should output 10)
Expected Output
10
Debug says:
This function should ADD two numbers together! Drag the expression that represents their sum into the return slot. What operation combines two values?
Debug the Worm