Welcome back, Pythonistas! 🚀 For the last two days, we’ve been using indices like 0, 1, and 2 to grab items out of our lists and tuples. But let’s be real—if you’re building an RPG game and want to find a character's "stamina", nobody wants to guess whether that's stored at index 4 or index 7.
Today, we are throwing numerical indices out the window and upgrading to custom labels. Imagine a massive chest of drawers where you get to write the labels on the outside yourself.
Enter Dictionaries! 🏷️📖
In Python, a Dictionary is a collection of key-value pairs. Instead of looking up items by a number, you look them up using a unique word (the Key) to get the data attached to it (the Value).
To make a dictionary, we use curly braces {}, and we separate keys and values with a colon :






