Dictionaries - CBSE Class 11 Computer Science Notes, Diagrams and Solved Questions
Look things up by key with Python dictionaries: creating and reading key-value pairs, adding and changing items, traversal, del, pop, popitem, clear, fromkeys, copy and setdefault, and the character-frequency and employee-salary programs.
In this chapter
Key-value pairs, valid keys and reading values with d[k] and get
Adding and changing items, and checking keys with in