Toptube Video Search Engine



Title:Python dictionaries are easy 📙
Duration:08:06
Viewed:202,099
Published:10-11-2022
Source:Youtube

#python #tutorial #course # dictionary = a collection of {key:value} pairs # ordered and changeable. No duplicates capitals = {"USA": "Washington D.C.", "India": "New Delhi", "China": "Beijing", "Russia": "Moscow"} # print(dir(capitals)) # print(help(capitals)) # print(capitals.get("Japan")) # if capitals.get("Russia"): # print("That capital exists") # else: # print("That capital doesn't exist") # capitals.update({"Germany": "Berlin"}) # capitals.update({"USA": "Detroit"}) # capitals.pop("China") # capitals.popitem() # capitals.clear() # keys = capitals.keys() # for key in capitals.keys(): # print(key) # values = capitals.values() # for value in capitals.values(): # print(value) # items = capitals.items() # for key, value in capitals.items(): # print(f"{key}: {value}")



SHARE TO YOUR FRIENDS


Download Server 1


DOWNLOAD MP4

Download Server 2


DOWNLOAD MP4

Alternative Download :