Q3. What are functions? Explain Python function with parameters and return statements.
Definition of a Function in Python: A function in Python is a reusable block of code that performs a specific task. It helps in breaking programs into smaller, manageable parts…