01 / 07
You want the answer, not the display
Every function so far has printed something and stopped there. It appears on screen, but you cannot use the answer afterwards.
Suppose you have a function that works out a price with tax on it, and you want to add those up. You need the function to bring the value home.
def double(number): print(number * 2)double(5)Result
10