McqMate
| 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. | |
View all MCQs in
Problem Solving and Python ProgrammingNo comments yet