<Apti
Code
/>
Back
Question 440: How do you remove a key-value pair from a dictionary?
tcs
wipro
infosys
general
aptitude
dictionaries
Thepop()method is used to remove a key-value pair from a dictionary.
dictionary.remove_key(key)
dictionary.delete(key)
dictionary.remove(key)
dictionary.pop(key)
Submit Answer
Show Answer
Previous
Next