Function Practice Questions
Function Practice Questions
2. Write a function that takes two numbers as arguments and returns their sum.
7. Write a function that takes a list as an argument and returns the largest number.
10. What is the difference between positional arguments and keyword arguments?
13. What is the purpose of the *args and **kwargs parameters in a function?
14. Write a function that removes duplicates from a list without using built-in functions.
19. Write a decorator function that prints 'Execution started' before executing another
function.