Dictionary in Python

Опубликовано: 01 Ноябрь 2024
на канале: Nuruzzaman Faruqui
281
2

Dictionary is one of the built-in data structures in Python. Whenever we need to work with data those come in ‘Key: Value’ pair, we use dictionary. That means dictionaries are data structure that stores information associated with particular key. In this lesson, we will learn to use Python dictionary.

The Python code used in this lesson:

user = {
"Name": "Nuruzzaman Faruqui",
"Age": 28,
"Email": "[email protected]",
"is_Verified": True
}
user["Age"] = 29
user["Job"] = "Teaching"
print(user)

‘You are free to copy, edit, use and distribute this code without crediting the author. Enjoy copyright-free content.’ – Nuruzzaman Faruqui.