Click here to Skip to main content
15,892,927 members
Articles / Programming Languages / Python2.7

Python Dictionary's get() method

Rate me:
Please Sign up or sign in to vote.
5.00/5 (4 votes)
16 Sep 2014CPOL 8.6K   2  
Python dictionary supports a get() method that helps to look up a key and perform assignment operation in one line of code!

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Mindfire Solutions
India India
Writing python code @ Mindfire Solutions, Noida.

Comments and Discussions