McqMate
| Q. |
Which of the following statements create a dictionary? |
| A. | d = {} |
| B. | d = {“john”:40, “peter”:45} |
| C. | d = {40:”john”, 45:”peter”} |
| D. | all of the mentioned |
| Answer» D. all of the mentioned | |
| Explanation: dictionaries are created by specifying keys and values. | |
View all MCQs in
Problem Solving and Python Programming