In this tutorial we are going to learn :
- Dictionaries In Python
- Creating Items and Accessing Items
- Change Dictionary Items
- Checking Items and Getting Lenght
Â
Â
Â
Dictionaries in Python
Â
Dictionary is an unordered, changeable, and indexed collection of items.
- Dictionaries have key and value.
- They are written with curly brackets
Â
Â
Â
Creating Items and Accessing Items
Â
We use curly brackets to create a dictionary.
- We also use the dict() method to create a dictionary.
- To access items in a dictionary, you can use the get() method.
Â
Example :