Computer Science, asked by bulbulrani101, 5 months ago

explain the function of python​

Answers

Answered by ishikasingh43
1

Function in Python is defined by the "def " statement followed by the function name and parentheses ( () ) Example: Let us define a function by using the command " def func1():" and call the function. The output of the function will be "I am learning Python function".

Answered by balendradubey5bd
14

Answer:

Answer

In Python, a function is a group of related statements that performs a specific task.

Functions help break our program into smaller and modular chunks. As our program grows larger and larger, functions make it more organized and manageable.

Furthermore, it avoids repetition and makes the code reusable.

Similar questions