In Python, a dictionary is a collection of key-value pairs.
.png)
Here are the key characteristics of a Python dictionary:
.png)
student = {
"name": "Tarif",
"age": 22,
"course": "Computer Science"
}
print(student)
'''
**{'name': 'Tarif', 'age': 22, 'course': 'Computer Science'}**
'''
print(student["name"]) # Output: Tarif
print(student["age"]) # Output: 22