Dictionary
Lesson 1 of 14 in Coddy's Dictionary in Python course.
Python dictionaries are a fundamental data structure that allows you to store and manage collections of data in a flexible and efficient way. They are also known as "dicts."
Dictionaries are used to store data values in key and value pairs.
A dictionary is a collection which is ordered, changeable and do not allow duplicates.
Here is an example of dictionary,
thisdict = {
"brand": "Ford",
"model": "Mustang",
"year": 1964
}Dictionaries are written with curly brackets, and have keys and values.
Let's dive in!
Try it yourself
This lesson doesn't include a code challenge.