Skip to content

Files

Latest commit

 

History

History
13 lines (7 loc) · 306 Bytes

File metadata and controls

13 lines (7 loc) · 306 Bytes

Dictionary

get() function :

  • A useful dictionary function is get. It does the same thing as indexing, but if the key is not found in the dictionary it returns another specified value instead.

get() Syntax :

dictionary_name.get(key, default_value)

or,

dictionary_name.get(key)