Loading section...

Removing Items

Python provides several ways to remove items from a dictionary. Each method has slightly different behavior, so choosing the right one depends on what you need. The del Statement The .pop() Method Fill in the blanks to remove an entry and check the remaining dictionary size. Clearing a Dictionary Choose the right removal method for the situation below. Think about what happens when the key might not exist.