Which of the following statements is false?
a. You can delete a key–value pair from a dictionary with the del statement
b. You can remove a key–value pair with the dictionary method pop, which re-turns the value for the removed key.
c. The one argument version of dictionary method get, normally returns its argument’s corresponding value—if that key is not found, get raises a KeyError.
d. Operators in and not in can determine whether a dictionary contains a specified key.
c. The one argument version of dictionary method get, normally returns its argument’s corresponding value—if that key is not found, get raises a KeyError.
You might also like to view...
A set of images, drawings, photographs, videos, and sound included with Microsoft Office or accessed from Microsoft Office online is called ________
A) styles B) templates C) clip art D) SmartArt
Programming languages must be converted from a human-readable form to a machine-readable form by a specialized piece of software called a ____.
A. binary code B. method C. compiler D. programmer