tubeshowcase●1,194,391 videosβ™‘ My collection 0
← Learn to Code

Learn to Code08:01

Python dictionaries πŸ“–

Bro Code β†—

From the creator

Python dictionaries tutorial explained #dictionary = A changeable, unordered collection of unique key:value pairs # Fast because they use hashing, allow us to access a value quickly capitals = {'USA':'Washington DC', 'India':'New Dehli', 'China':'Beijing', 'Russia':'Moscow'} #capitals.update({'Germany':'Berlin'}) #capitals.update({'USA':'Las Vegas'}) #capitals.pop('China') #capitals.clear() #print(capitals['Germany']) #print(capitals.get('Germany')) #print(capitals.keys()) #print(capitals.values()) #print(capitals.items()) for key,value in capitals.items(): print(key, value) #python #dictionaries #dictionary –––––––––––––––––––––––––––––– Up In My Jam (All Of A Sudden) by - Kubbi https://soundcloud.com/kubbi Creative Commons β€” Attribution-ShareAlike 3.0 Unportedβ€” CC BY-SA 3.0 Free Download / Stream: http://bit.ly/2JnDfCE Music promoted by Audio Library https://youtu.be/tDexBj46oNI ––––––––––––––––––––––––––––––

Published 2020-11-30 Β· Watch on YouTube β†—
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code