In python, an empty dictionary is defined using empty curly braces {}.
Length of dictionary is 0 zero, dictionary do not contain any element and its empty. We will see how we can add elements to an empty dictionary.
Dictionary created above has strings in both keys and values. It can also contain mixed data types. Python Dictionary is a heterogenous.
In the next chapter operations on Python Dictionaries we will discuss different operations on dictionary like accessing elements, updating elements, removing elements, Listing all the keys
No comments:
Post a Comment