Q.

print(list(d.keys()))

A. [“john”, “peter”]
B. [“john”:40, “peter”:45]
C. (“john”, “peter”)
D. (“john”:40, “peter”:45)
Answer» A. [“john”, “peter”]
Explanation: the output of the code shown above is a list containing only keys of the dictionary d, in the form of a list.
2.3k
0
Do you find this helpful?
1

Discussion

No comments yet