Functions in Python - Keyword Arguments

preview_player
Показать описание
Here’s another video in the Functions in Python series. If you haven’t watched the previous parts yet, feel free to do so. These are:
1) Introduction to Functions
2) Functions with Parameters
3) The return Statement
4) Mandatory Parameters
5) Optional Parameters
6) Mutable Optional Parameters

Today we’ll be talking about keyword arguments.

All the parameters that we’ve been using so far, both mandatory and optional, are the so-called positional parameters. This is because when we call a function, the arguments must be passed to it in the same order (at the same positions) as in the parameter list. But there is a way around it. We can use arguments in any order, provided we pass them along with the parameter names. These are the so-called keyword arguments.

***************************************************************************

***************************************************************************

If you want to learn more, you can purchase one of my courses on Udemy:

1) Python Jumpstart Course:

2) Python in Science - Introduction to numpy:

3) Blender Jumpstart Course:

4) Math - As Easy As It Gets: The Basics of Algebra:

***************************************************************************

I made the Video Intro Animation in Blender. I was inspired by this video:
from the blenderBinge channel, one of the best Blender channels out there.
Рекомендации по теме
welcome to shbcf.ru