Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Decorator Exercise

Write a decorator that calculates the execution time of a function and displays it after the function is executed. Then, use this decorator for a function that creates a list from 1 to n.

Input:

  • The number n that specifies the size of the list.

Output:

  • The return value of the function (list 1 to n)
  • The execution time of the function in seconds