#cswithmona #pythonintamil
The return statement causes your function to exit and returns a value to its caller. The
point of functions in general is to take inputs and return something.
• The return statement is used when a function is ready to return a value to its caller. So,
only one return statement is executed at run time even though the function contains
multiple return statements.
• Any number of 'return' statements are allowed in a function definition but only one of
them is executed at run time.
Scope of variable refers to the part of the program, where it is accessible, i.e., area where
you can refer (use) it. We can say that scope holds the current set of variables and their values.
types: local and global are explained.
video link for required arguments.
https://youtu.be/G1udMUcZFAA
video link for keyword arguments.
https://youtu.be/WTB-gSrEfyc
video link for default arguments.
https://youtu.be/GbGRX9AhVe8
video link for variable length arguments.
https://youtu.be/8QW4qb03mQ8
video link for Anonymous function:
https://youtu.be/56uuaDUD7e0