McqMate
| Q. |
Which of the following is not a declaration of the dictionary? |
| A. | {1: ‘a’, 2: ‘b’} |
| B. | dict([[1,”a”],[2,”b”]]) |
| C. | {1,”a”,2”b”} |
| D. | { } |
| Answer» C. {1,”a”,2”b”} | |
| Explanation: option c is a set, not a dictionary. | |
View all MCQs in
Problem Solving and Python ProgrammingNo comments yet