HomeTracks
Explorer···
THEEBUG
Completed0/9
Score0
PYlesson2.py×
THEEBUGlesson2.py
1
def add(a, b):
2
return ______
3
 
4
result = add(3, 7)
5
print(result) # 10
$[system] Theebug ready. Happy coding!
Code BlocksDrag blocks into the drop zones above
4 blocks available
a + b
a - b
a * b
a / b
Game Panel
0:000 pts
Level 2 of 9Functions
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