← Python Roadmap Home

08. Dictionaries

key-value pairs

Dictionary = key → value. Real life form jaisa.

student = {
    "name": "Neha",
    "age": 17,
    "city": "Delhi"
}
print(student["name"])
student["age"] = 18
print(student)