Dictionary is an unordered collection of key-value pairs.
Real word dictionaries are a good analogy to understand them: they contain a list of items(words), and each item has a key(the word) and a value(the word’s meaning).
It generally is used when we have a huge amount of data.
It is defined within braces, with each item being in the form of key: value pair. Syntax –
my_dict = {
"key1":"value1",
"key2":"value2",}
For the time being, ignore the video after 4 minutes and 18 seconds. Don’t worry if you don’t understand the topics after 4 minutes and 18 seconds. You will learn that soon.
Example: