Dictionary Methods
PYTHON
CLEAR
Remove all elements from Dictionary
COPY
Return copy of Dictionary
FROMKEYS
Return Dictionary with specified keys &
values
GET
Return value of specified key
ITEMS
Return view object containing list of
key value pairs
KEYS
Return view object containing list of
keys
Optional Parameter: Value returned if no key exists.Value.
Default is None
Optional Parameter: This is what's set for all keys.Value.
Default is None
@AbzAaron
POP
Remove element with specified key
and return it
POPITEM
Remove last inserted key value pair and
return as tuple
SETDEFAULT
Return value of item with specified key. If
key doesn't exist, insert with specified value
UPDATE
Update dictionary with specified key
value pairs
VALUES
Python < 3.7 method returns random item
Optional Parameter: This is value to return if no key isDefaultvalue.
found in dictionary
Return view objects containing list of
values
Optional Parameter: Default is value. None

Preview text:

PYTHON Dictionary Methods @AbzAaron CLEAR
Remove all elements from Dictionary COPY Return copy of Dictionary FROMKEYS
Return Dictionary with specified keys & values
Optional Parameter: Value. This is what's set for all keys. Default is None GET Return value of specified key
Optional Parameter: Value. Value returned if no key exists. Default is None ITEMS
Return view object containing list of key value pairs KEYS
Return view object containing list of keys POP
Remove element with specified key and return it
Optional Parameter: Defaultvalue. This is value to return if no key is found in dictionary POPITEM
Remove last inserted key value pair and return as tuple
Python < 3.7 method returns random item SETDEFAULT
Return value of item with specified key. If
key doesn't exist, insert with specified value
Optional Parameter: value. Default is None UPDATE
Update dictionary with specified key value pairs VALUES
Return view objects containing list of values