Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
Well done!
You have completed (UPI) Chapter 9: Introduction to Python Data Structures: Lists, Tuples, and Dictionaries!
Instruction
Dictionaries
Dictionaries, or dict
, are collections of key-value pairs. Each element is referred to by key, not by index. In a dictionary, the keys can be strings, numbers, or tuples, but the values can be any Python object. So you could have a dictionary where one value is a string, another is a number, and a third is a DataFrame (essentially a dataset, using the pandas library). A simple example might b...