Python Functions | Default Arguments and Keyword Arguments | Variable Scopes

Publicado el: 15 octubre 2020
en el canal de: Tech Programmer
31
like

This video explains how we can define our own custom functions and how we can use them to simplify our code. This video takes off by explaining what function is, then it gives simple syntax of how we can define a function. Down the road, it shows several examples of defining functions with doc strings. Towards the end, we build little larger codebase with a simple calculator utilizing our knowledge of function to break down our application into smaller manageable functions. I explain about the None value in Python. This is the default return value for function if there is no explicit return statement.

In this video, you will also learn about variable scopes. Variables scopes are the duration for which our defined variable is available. In Python, we have local scope and global scope. We do not have block level scope in Python. In this video, you will see practical demonstration of these concepts. We also learn about global keyword in Python.

This video also talks about default arguments for functions as well as keyword arguments. These are very important features of Python programming and they are used all over the language itself.

What is Function? [0:11]
Basic Structure of Defining Function [0:51]
Calling a Function [3:01]
Docstring in Python Functions [6:02]
Return Statement in Functions [7:25]
Execution order with Functions [11:45]
Simple Calculator Project in Python [13:15]
Variable Scopes in Python [16:50]
'global' keyword in Python [20:15]
Block Level scope in Python? [21:41]
Default arguments in Python [22:48]
Keyword arguments in Functions [24:26]

If you like our content, click on SUBSCRIBE button and click on Bell icon to receive latest and greatest updates of my video lessons.

Follow us on Facebook, Twitter, Instagram

Facebook Link:   / techprogrammer1  
Twitter Link:   / techprogrammer1  
Tumblr Blog: https://www.tumblr.com/blog/techprogr...


En esta página del sitio puede ver el video en línea Python Functions | Default Arguments and Keyword Arguments | Variable Scopes de Duración hora minuto segunda en buena calidad , que subió el usuario Tech Programmer 15 octubre 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 31 veces y le gustó like a los espectadores. Disfruta viendo!