Question 1
D = dict()
for x in enumerate(range(2)):
D[x[0]] = x[1]
D[x[1]+7] = x[0]
print(D)
Question 2
D = {1 : 1, 2 : \'2\', \'1\' : 1, \'2\' : 3}
D[\'1\'] = 2
print(D[D[D[str(D[1])]]])
Question 3
D = {1 : {\'A\' : {1 : \"A\"}, 2 : \"B\"}, 3 :\"C\", \'B\' : \"D\", \"D\": \'E\'}
print(D[D[D[1][2]]], end = \" \")
print(D[D[1][\"A\"][2]])
Question 4
D = dict()
for i in range (3):
for j in range(2):
D[i] = j
print(D)
Question 5
D = {1 : [1, 2, 3], 2: (4, 6, 8)}
D[1].append(4)
print(D[1], end = \" \")
L = [D[2]]
L.append(10)
D[2] = tuple(L)
print(D[2])
Question 6
a = {i: i * i for i in range(6)}
print (a)
Question 7
a ={}
a.fromkeys([\'a\', \'b\', \'c\', \'d\'], 98)
print (a)
Question 8
dict ={}
print (all(dict))
Question 9
a = {\'geeks\' : 1, \'gfg\' : 2}
b = {\'geeks\' : 2, \'gfg\' : 1}
print (a == b)
Question 10
There are 25 questions to complete.