Python Tutorial for Beginners 22 - Default Arguments, *args and **kwargs (Variable-length Arguments)

preview_player
Показать описание
In this Python Tutorial for Beginners video I am going to show How to use Default Arguments, *args and **kwargs (Variable-length Arguments) in Python. Wo what are Default Values for Arguments ? Python allows as to provide default values for a function’s arguments. These arguments are optional when the function is called.Passing lists as arguments def sum(*args): - Lists can be passed in cases where there may be a variable number of arguments
Passing dictionaries to functions (def functionName(**kwargs)).

#PythonTutorialforBeginners #ProgrammingKnowledge #LearnPython #PythonCourse
★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
Рекомендации по теме
Комментарии
Автор

This video was so helpful and clear to understand. Thank you for sharing 🙂

josospecial
Автор

Please upload video more and more sir
Video is awesome 👍♥️❤️

Himanshuyadav-wcvp
Автор

Thank you very much! You are the best!

sebo
Автор

thanks for the explanation about rerurn ))

neofit
Автор

Sir can we say default argument serve the same purpose as the default constructor?

aditijoshihehe
Автор

Sir I have one doubt
i.e why have you kept name in double quote and aga, marks in single quote plz Tel me

sinchanarhegde
Автор

sir i tried this but i get a syntax error when i tried to give student(, 21) i.e to get unknown name and age 21

akshaydeshpande
Автор

How many more python tutorials will be uploaded until series is finished. I need to know by when as I want to get full coverage and only then start watching... please respond

jassangha
Автор

Please don't use the name of MAX JULY etc because, it is very embarrassing for actual beginners, as there exists already some functions, named after those key-words

soumyadeepbarik
join shbcf.ru