Functions are blocks of code written to carry out a specified task. There are two types of functions in python: User-Defined Functions – these types of functions are defined by the user to perform any specific task. Built-in Functions – these types of functions are pre-defined in python.
Sandhya Answered question September 7, 2023
Python Functions is a block of statements that return the specific task. The idea is to put some commonly or repeatedly done tasks together and make a function so that instead of writing the same code again and again for different inputs.
Shathana. S.R. Answered question September 7, 2023