Skip to content

Commit a324545

Browse files
authored
Update decorator-kwargs-args.md
1 parent ff3fc9d commit a324545

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/advanced-python/decorator-kwargs-args.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ A dictionary with keys and values is obtained.
9393
Now that we understand what first class object, *args, **kwargs is, we can move to decorators. Decorators are used to perform a task that needs to be performed for existing functions. If some task has to be performed for each function, we can write a function which will perform the task without us having to make changes in each function.
9494

9595
**Sample Code:**
96-
```
96+
```python
9797
import time
9898
def multiplication(a,b):
9999
start=time.time()
@@ -117,7 +117,7 @@ In the above code, we had to calculate time and print the execution time seperat
117117
The same functionality can be achieved with the help of a decorator.
118118

119119
**Here's how:**
120-
```
120+
```python
121121
import time
122122
def time_find(function):
123123
def wrapper(*args, **kwargs):

0 commit comments

Comments
 (0)