Dictionary in python#2
#Dictionary program
d1={"CPU":"Central proccessing Unit",
"MU":"Memory unit",
"ALU":"Arithematics logic Unit"}
#print(d1["CPU"])
#print(d1.keys())
#print(d1.items())
#d1["Deep"]={"Verma"}
#del d1["Deep"]
#d1.update({"Dog":"jimmy"})
#d1.values()
#d1.popitem()
#d1.fromkeys("CPU")
#d1.pop("MU")
#d1.clear()
print(d1)
Comments
Post a Comment