Very Easy to use Dictionary in Python as compared to Java or other OOPS language.
Just need Eclipse Pydev Editor and thats its you are on the go.
Below is a sample code with few methods used.
#Play with Dictionary in Python.
from builtins import str
#Print Values in Dictionary
print(“Elements of the dicttionary are”,dict.values())
#Print Length of Dictionary
print(“Length of dictionary is “,len(dict))
#Return String Representation of dictionary
print(“Clearing contents of dictionary”,dict.clear())
print(“Dictionary is empty”)
print(“Dictionry is not empty”)
print(“Dictionary is empty:”,len(dict))