Functions in python.
As discussed earlier, functions are pieces of code, written outside the main function.
Main advantage is code reusability.
The video discusses the following
- try
- except
- finally
- global and local variable
- nonlocal keyword
Passing arguments in function
There are many types for passing arguments to a function.
The video below explains the types of argument passing, *args, *kwargs, and lambda function.
You did a great job if you have come this far.
Next post will be on OOPs concepts.
Thank you!
No comments:
Post a Comment