Wednesday, December 30, 2020

Functions

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

Anaconda Installation

In this post we will discuss about Anaconda and its installation. Anaconda comes with number of applications(jupyter notebook included), dat...