McqMate
| Q. |
Suppose d = {“john”:40, “peter”:45}, to delete the entry for “john” what command do we use? |
| A. | d.delete(“john”:40) |
| B. | d.delete(“john”) |
| C. | del d[“john”] |
| D. | del d(“john”:40) |
| Answer» C. del d[“john”] | |
| Explanation: execute in the shell to verify. | |
View all MCQs in
Problem Solving and Python ProgrammingNo comments yet