Python Training Program Session 10 || Arbitrary Arguments, Keyword Argument, Default Parameter Valu
Hello Everyone! Today in this video I am going to explain about Arbitrary Arguments, Keyword Arguments , Arbitrary Keyword Arguments, Default Parameter Value , Passing a List as an Argument , Return Values, Returning multiple values, The pass Statement and Example.
✻ I really hope you find this video useful.
Arbitrary Arguments (*args) :
If you do not know how many arguments that will be passed into your function, add a * before the parameter name in the function definition.
This way the function will receive a tuple of arguments, and can access the items accordingly.
Keyword Arguments (kwargs)
You can also send arguments with the key = value syntax.
This way the order of the arguments does not matter.
Arbitrary Keyword Arguments (kwargs**)
If you do not know how many keyword arguments will be passed into your function, add two asterisk: ** before the parameter name in the function definition.
This way the function will receive a dictionary of arguments, and can access the items accordingly.
Default Parameter Value :
If we call the function without argument, it uses the default value.
Passing a List as an Argument :
You can send any data types of argument to a function (string, number, list, dictionary etc.), and it will be treated as the same data type inside the function.
E.g. if you send a List as an argument, it will still be a List when it reaches the function.
The pass Statement :
Function definitions cannot be empty, but if you for some reason have a function definition with no content, put in the pass statement to avoid getting an error.
#Python #PythonTraining #JupyterNotebook #PythonForBeginners #Learning #Arguments #ReturnFunction #Function #Examples
---------------------------------------------------------------------------
THANK YOU so much for watching!
Please make sure to LIKE and SHARE the video and SUBSCRIBE to the channel for more such videos :)
---------------------------------------------------------------------------
CONNECT WITH ME ON:
✻ LinkedIn: https://www.linkedin.com/in/sunidhi-pandey-96008b192/
✻ GitHub: https://github.com/sunidhi2001
✻ YouTube channel: https://www.youtube.com/channel/UCypX76paWuY76JC0rtbG61w
✻ Instagram : https://www.instagram.com/20sunidhi/
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Python Training Program Session 10 || Arbitrary Arguments, Keyword Argument, Default Parameter Valu», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.