get Method in Python|Dictionary in Python Tutorial|Python Dictionary Operations

preview_player
Показать описание
get Method in Python|Dictionary in Python Tutorial|Python Dictionary Operations.
This video is part of Python tutorial for beginners in Hindi.In this video,i have covered most important method of dictionary i.e get() method.This method is used to get value of specified key.

You will learn:-
1) dictionary in python
2) get() method

Hello guys,welcome to code-yug to build your computer science skills.Here,you will learn programming tutorials and computer science tutorials from basics to advanced.

source code :-
Thanks for watching this video
Subscribe codeyug for more programming tutorials.
About this channel:-
This channel provides free tutorials on programming,coding,web development.There are programming tutorials which covers from basics to advanced absolutely in hindi.

Our social links:-
creator:-
------shantanu kejkar-------
#python #python3 #codeyug #programming #coding #tutorial
Рекомендации по теме
Комментарии
Автор

Hi what module did you import to access the get() function?

autovan
Автор

Nice one.... Can you plz tell, where we can't use end=" " function?

Seasonal_Traders
Автор

#get() method in dict.
"""
get() used to asscess the item in dict.It doesnt give any error . if element not found it will return none .

syntax :
dict_name.get(key, default vayr)

default value : it is a value which is you setting beacuse if the element not found dict will create a new key and item.
"""

#Example:

students_record = {"karan":"12th", "Roll no": 32, "gender":"male", "height":6.1, "weight": 45}


print(students_record)
print(students_record.get("grades", "A+"))

print(students_record)

KaranSinghD-yjep
join shbcf.ru