#3 Python Full Course for beginners 2021 | Defining def and lambda functions, importing modules

Publicado el: 23 junio 2021
en el canal de: Yugesh
185
5

We will learn how functions work in Python. We start by using many examples of Python's in-built functions such as print function, type function, len function, and int function to name a few to understand how to run/call a function from Python. We will also cover how to import modules in python from a different folder and use their functions in our script. To do this, we will use the math module and import the same, and explore some examples on how to use mathematical functions in the module.
We will next learn about how to define a custom function in Python. We will understand the concepts of arguments and how to input arguments into the parentheses while calling functions. Similarly, we will understand what is the difference between parameter and argument. There are different ways we can define functions. We will see examples on how to define functions that take no arguments and on how to define functions that take multiple arguments.
Arbitrary Arguments (*args) is another important concept when we don't know how many arguments a function can take. Keyword Arguments and Arbitrary Keyword Arguments are equally important. We will explore some differences in args vs kwargs in Python.
In some cases, it is beneficial to have a default argument, if the user doesn't give any argument while calling the function. Hence, we will explore how to have a default parameter in a Python function.
Next, we cover how to use the Return keyword in a Python function. We will explore what is the difference between return and print in Python.
Finally, we will understand what are lambda functions in python. Anonymous functions, that can have multiple arguments but only one expression, unlike def function. We will see how to define a lambda function in python and explore differences in def functions and lambda functions.

In-built Functions for Python: https://docs.python.org/3/library/fun...
Math Module Documentation: https://docs.python.org/3/library/mat...

Chapters:
00:00 Intro
00:59 What is a Function
03:26 Python’s in-built functions
07:38 Importing Modules and using their Functions
12:09 Creating a Function
22:05 Arbitrary Arguments (*args)
24:39 Keyword Arguments
30:17 Arbitrary Keyword Arguments (**kwargs)
32:54 Default Parameter Value
35:31 Return Values
37:58 Lambda Functions


En esta página del sitio puede ver el video en línea #3 Python Full Course for beginners 2021 | Defining def and lambda functions, importing modules de Duración hora minuto segunda en buena calidad , que subió el usuario Yugesh 23 junio 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 185 veces y le gustó 5 a los espectadores. Disfruta viendo!