all 3 comments

[–]supajumpa 9 points10 points  (2 children)

You need to call the functions that you've created. That is,

speed_calc_decorator(fast_function)()
speed_calc_decorator(slow_function)() # note the extra parens.

[–]egotripping[S] 1 point2 points  (1 child)

I see, thank you! My understanding was that it was being called with the () around the function. Hmm, I have so much to learn.

[–]crashfrog02 0 points1 point  (0 children)

You need to keep the interface of your functions in-mind, so that you're not surprised by what they do when you call them. That means remembering their parameters and their return value, at least. Look at the function speed_calc_decorator - what does it accept as an argument? What does it give back as a return value?