Functions
Functions are the block of statement which
executes and perform specific task
whenever it is called.
----------------------------------------------------------
Functions are just like a packet in which we
pack the lines of code inside it and use it
whenever we need.
Syntax:-
def function_name(Parameters):
function_body(lines of Code)
return expression
Types of Function:-
1.Built-In Functions.
2. User-Defined Functions.
Built-In Functions:-
Built-in Functions are those functions
which are already pre-coded and defined
in Python.
For ex:-
len(), min(), max(), print(), type(), etc.
User-Defined Functions:-
Functions which are defined by the programmer at the
time of writing code are known as User-Defined
Functions.
User-Define Functions can be define using def keyword
written before the Function Name.
For ex:-
def function_name():
function_body
Thank You!!!

Functions.pptx