Nested calls
Predict the output · Medium · §8.2 Giving back
Predict the output without running the code. Start by counting how many lines will be printed.
Code
def add_bonus(likes):
return likes + 10
def show_bonus(likes):
print(likes + 10)
print("A:", add_bonus(5))
print("B:", show_bonus(5))Solve this problem in your browser
Python runs in your browser and checks your answer right away. Hints and the answer are on the problem page.