Some Dictionary Functions in Python

 Dictionary Functions

d1 = {}
# print(type(d1))
d2 = {"Akhand":"paneer", "Vaishnavi":"egg", "Rajesh Mama":"chicken","Mummy":"Roti"}
# d2["Atharva"] = "Chai & Biscuit"
# print(d2)
# del d2["Atharva"]
# d3 = d2.copy()
# del d3["Rajesh Mama"]

# print(d2.update({"Priya":"Toffee"}))
# print(d2.keys())
print(d2.items())

Comments

Popular posts from this blog

Sets in Python

My Learnings