What is a function in Python programming?

Hi, I need to know What is a function in Python programming

2 Likes

Functions are reusable blocks of code with some specific purpose.

Syntax:

def function_name( parameters ):
    code