a={“Name”:”Rishabh”,”Age”:”19″,”City”:”Jaipur”}
print(type(a))
# Printing Entire dictonary
print(a)
# Printing Single Element
print(a[“Name”])
# Updating Single Element
a[“Name”]=”Tinku”
print(a)
# deleting Single Element
del a[“Name”]
print(a)
# clearing entire Element
a.clear()
print(a)
# deleting entire dictionary
del a
print(a)
print(len(a))
b=[“a”,”b”,”c”]
d=(“x”,”y”,”z”)
s1=str(a)
s2=str(b)
s3=str(d)
# printing the type of s1,s2,s3
print(type(s1))
print(type(s2))
print(type(s3))
# clearing all elements of dictionary “a”
a.clear()
print(a)
# coping the elements of “a” into “b” dictionary
b=a.copy()
print(b)
print(type(b))
b=[“Class”,”Per”,”Fees”]
d=dict.fromkeys(b)
print(d)
print(a[“Name”])
print(a.get(“Name”))
print(a.items())
print(a.keys())
print(a.values())
d1={“Name”:”abc”,”Age”:22,”City”:”Jaipur”}
d2={“Name”:”titu”,”Class”:2,”Per”:”82″}
# updating the dictionary
d1.update(d2)
print(d1)