Wednesday, February 26, 2020

Function In Python Part-1




ü Function is a sub block that contains set of lines of Code.

ü A function is a block of reusable code. A function allows us to write code once and use it as many times as we want just by calling the function.

ü Functions in Python provide organized, reusable and modular code to perform a set of specific actions

ü Python allows us to divide a complex program into the basic building blocks known as function.

ü The function contains the set of programming statements enclosed by {}

ü A function can be called multiple times to provide reusability and modularity to the python program.

No comments:

Post a Comment