Prahlad Yeri

Freelance Programmer and Writer

Articles tagged with Dictionary

Why you should never use the dict.get() method in Python

There is an increasing trend towards using the dict.get() method in Python, its very widely used in many tutorials and examples too. Condsider the below example for instance: >>> dd = {'a': 1} >>> dd.get('a') 1 This simple dictionary dd has only one key ('a') and its corresponding value is … Read More