function

Functions in Python

Function is the set or block of statements that takes input print values or do some functionalities to perform a task. In a programming language we create a function to put some commonly or repeatedly done task together so that instead of writing the same code again and again for…