Accessing Items in a Dictionary
Accessing a Dictionary
Data or values in a dictionary can be accessed through their corresponding keys.
using get()
method
get()
method returns a value corresponding to the given key if the key exists, it doesn’t raised any error if the key doesn’t exists.