diff --git a/4_decorators.py b/4_decorators.py index b3ce93b..155dd95 100644 --- a/4_decorators.py +++ b/4_decorators.py @@ -26,6 +26,7 @@ def timed(function: any) -> any: #initial function takes in another function as return wrapper +# This is how we call a decorator in python. @timed def exponential_function(n: int) -> int: # O(n^2) time complexity due to nested loops output = 0