my_dict = {"name": "Alice", "age": 25, "city": "New York"} print(my_dict["age"])
a={1:10,2:10,3:"string"} b={4:"hello"} a.update(b) print(a)
my_dict = {"apple": 3, "banana": 5, "cherry": 2} my_dict["apple"] = 6 print(my_dict["apple"])
d1 = {"a":40, "b":45} d2 = {"a":40, "b":45} print(d1 < d2)
my_dict = {"a": 1, "b": 2, "c": 3} del my_dict["b"] print(my_dict)
count={} count[(1,2,3)] = 5 count[(3,2,1)] = 7 count[(1,2)] = 6 print(count)
dict ={} dict[5]= 5 dict[6]=(5,6,7) print(dict[6][0])