From 4a917f5e8cb860989d85600aac30de050b404d76 Mon Sep 17 00:00:00 2001 From: peace Date: Fri, 8 Nov 2024 20:17:00 +0000 Subject: [PATCH] Update 4_decorators.py --- 4_decorators.py | 1 + 1 file changed, 1 insertion(+) 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