Dictionaries - English

9068 visits



Outline:

Overview of dictionaries Creating an empty dictionary Creating a non empty dictionary About key:value pair How to access the dictionary elements Demonstration of wrong key Add, delete and modify an item in a dictionary Usage of method in Retrieve the keys and values by using the methods keys() and values() Iterate over elements of a dictionary using a for loop