Skip to content

Files

Latest commit

 

History

History

Dictionary

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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)