Google News
logo
Python - Interview Questions
Explain Python functions.
A function is a section of program or a block of code that is written once and can be executed whenever required in the program.

There are two types of functions :

Built-In Functions : Functions that are predefined. We have used many predefined functions in Python.
User- Defined : Functions that are created according to the requirements.
Advertisement