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