Please explain the get dictionary in python 3.0. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Please explain the get dictionary in python 3.0.

18th Jun 2018, 9:31 AM
Kunal J.
Kunal J. - avatar
2 Answers
+ 2
You mean the dictionary’s get() method? # given a dict D d.get(key) # returns the value d[key] # equivalent to above Here you find examples: http://www.tutorialspoint.com/JUMP_LINK__&&__python__&&__JUMP_LINK/dictionary_get.htm
18th Jun 2018, 1:09 PM
Pedro Demingos
Pedro Demingos - avatar
18th Jun 2018, 1:10 PM
Sahil Danayak
Sahil Danayak - avatar