Robotics & Artificial Intelligence

Define function.

Python Functions

1 Like

Answer

A function is a program module (a part of the program) used simultaneously at different instances in a program to perform a specific task. In other words, a Python function is a block of reusable code designed to perform a specific task which allows to encapsulate code, making it more modular, readable and easier to debug.

Answered By

2 Likes


Related Questions