Python Dictionary Get Method | Python Tutorials For Beginners

Опубликовано: 08 Июнь 2021
на канале: SavageCamp
29
3

Python Dictionary Get Method
Let's get back to our favorite data type - Python Dictionaries!
Dictionaries have a lot of features but one that is very powerful and useful is the .get method. We often do now know if the dictionary has a certain value in its key or not.
Sure we can write a if loop and handle it that way, if it is not present, create a variable and add it, but instead of all that we can just use one method that can save us all the time and effort to do the above things.
The .get methods helps us find the key if it exists else return any thing that we want. Pretty useful and we are going to put that in use in the next video so watch this carefully.

Follow our socials:
FB: http://bit.ly/savageCampFb​
Insta: https://bit.ly/savagecampinsta


На этой странице сайта вы можете посмотреть видео онлайн Python Dictionary Get Method | Python Tutorials For Beginners длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь SavageCamp 08 Июнь 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 29 раз и оно понравилось 3 зрителям. Приятного просмотра!