get()
The get()
method returns the value of the item with the specified key. keyname
is required and is the name of the item you are searching for, value
is optional and is returned if keyname
is not found in the dictionary.
dictionary.get(keyname, value)