Infosys interview question

What are functions in Python ?

Interview Answer

Anonymous

13 Feb 2024

In Python, a function is a block of organized, reusable code that performs a specific task. Functions provide better modularity for your application and a high degree of code reuse. You can define functions to provide the required functionality and then call them whenever needed in your program.