Python Tutorial in Hindi | Keyword Arguments in Python | Default Arguments in Python

preview_player
Показать описание
Python Tutorial in Hindi | Keyword Arguments in Python | Default Arguments in Python
This video is part of advanced python tutorial in hindi.In this video,i have explained about types of arguments.There are four types of arguments.Let's see keyword and defualt arguments today..
you will learn:-
1) keyword arguments in python
2) python tutorial in hindi

source code :-

About Python Tutorial:- python for beginners-Go from Zero to Hero in python.This tutorial includes python programming videos from basics to advanced

More tutorials:-

About codeyug :-
Codeyug provides tutorials for building your programming skills.Here,you will learn various programming languages,computer science,web development with free of cost.

SHARE | SUBSCRIBE | LIKE
-- - - - - - - - - - - - - - - - - -Thanks for watching this video - - - - - - - - - - - - - - - - - -- -
Our social links:-
creator:-
$ -shantanu kejkar -$

#python #python3 #programming #codeyug #tutorial #coding
Рекомендации по теме
Комментарии
Автор

#2. keyword arguments

#The value of the keyword is matched with the parameter name and so improper order also work without an error.

def datasys(name, age):
print("Hii my name is ", name)
print("And my age is ", age)

datasys(name="karan", age=18)
datasys(age=26, name= "raj")
#doesn't required to match order


#3. Default arguments

"""In python the default arguments is an argument that takes a default value if no value is provided in the function.
The default value should be last parameters you cannot give default parameter as first parameter and same for arguments."""


def sys(name="karan", work= "student"):
print(name)
print (work)
sys("raj")


def sys(name, work= "student"):
print("name : ", name)
print ("His work : ", work)
sys("raj", work="taxi driver")

KaranSinghD-yjep
Автор

What are args and kwargs
Args are the positional arguments
Kwargs are the keyword arguments
Both can be used with functions

How to use args and kwargs
Use args with the *args syntax
Use kwargs with the **kwargs syntax
You can use args and kwargs together

zafrannawaz
Автор

Good explanation
Make separate playlist for tuple. ..set

nandinirm
Автор

Please tell about position only argument and keyword only argument

shantanukadukar
join shbcf.ru