Dictionary | Key |
Value | Mutable |
Immutable | Length |
Update | Keys |
A unique identifier that is used to access the corresponding value in a dictionary. | A collection of key-value pairs, where each key maps to a specific value. |
A type of object that can be changed after it has been created. | The data associated with a key in a dictionary. |
The number of key-value pairs in a dictionary. | A type of object that cannot be changed after it has been created. |
A method that retrieves all the identifiers present in a dictionary. | Method for merging two dictionaries by adding all key-value pairs from one dictionary into another. |
Values | Clear |
Pop | Nested Dictionary |
Hash Table | Dictionary Methods |
Items | Get |
A method that removes all key-value pairs from a dictionary. | A method that returns all the elements within a dictionary. |
A dictionary that contains other dictionaries as values for its keys. | A method that removes and returns the value associated with the specified key. |
Functions that can be called on a dictionary object to perform operations such as adding, removing, or modifying key-value pairs. | A data structure that allows for efficient access using a hash function. |
A method that returns the value associated with the specified key. If the key is not found, it returns None or a default value. | A method that returns a view object of all the key-value pairs in a dictionary. |
In | Copy |
Dictionary Comprehension | |
A technique that produces a replica of a dictionary with a limited depth. | An operator that returns True if a key is present within a dictionary, and False otherwise. |
A concise way to create a dictionary from an iterable by defining the key-value pairs within curly braces {}. | |