I'm not familiar with the exercise or how 'return' applies to the exercise (I have never taken the Python course), but I know why 'return' is important, in case that's what you need to know
'Return' is how you get a value out of a function.
Say, for example, you have the function 'add numbers' which adds two numbers provided.
def add(a, b):
total = a + b
This will run the code, but it doesn't provide a value. However, if you add a return command (
return total) to the end, it will return 'total' as a value. This allows you to set variables to the product of a function, etc.
myVariable = add(1,2)
If you need me to clarify, I will be able respond within a few hours. If this is not what you are looking for, or if my answer is irrelevant to Python, I'm sorry!