Q. What is the output of the following program?D = dict()for x in enumerate(range(2)): D[x[0]] = x[1] D[x[1]+7] = x[0]print(D) (Solved)
1. KeyError
2. {0: 1, 7: 0, 1: 1, 8: 0}
3. {0: 0, 7: 0, 1: 1, 8: 1}
4. {1: 1, 7: 2, 0: 1, 8: 1}
- c. {0: 0, 7: 0, 1: 1, 8: 1}