A Galway weather station logs a reading every hour. Do you need a name for each one?
A weather station in Galway records a temperature every hour. If you gave each reading its own variable name, you'd need twenty-four names for just one day. How could you keep the readings in order with a single name?
You've used a variable name to refer to a Boolean value or a date. You could do the same here: call the first temperature reading temp one and the next temp two. Each name refers to one reading.
Watch the readings go between square brackets, in the order they were recorded. Now readings square bracket zero picks out eight, the first value. This ordered collection is a Python list. The position number you use to pick a value is its index.
You've got three temperature readings: six, nine and eleven, in that order. What value does readings square bracket one give you? Pick the value you'd get when Python runs that expression.
Both collections keep values in order and let you replace a value at an index. A Python list can grow and can hold values of different types. A fixed-size typed array has a set number of slots, and each slot must hold a value of the declared type.
Start with eight, ten and twelve. Replace ten at index one with nine. You still have three values. Append thirteen at the end. Len now gives four. Subtract one from four to get the last zero-based index, three. That index gives you thirteen.
You start with seven and eleven. First, you set the value at index one to ten. Then you append twelve. After both changes, what's the length, and what's the last valid zero-based index? Pick the pair.
Look at the three readings. Their indices are zero, one and two. Len gives three because there are three values. If you use that length as an index, Python raises an index error. Index three would need a fourth slot.
Measure the temperature and store each reading as a decimal. Temperature is continuous. Sorted puts the readings in order from lowest to highest. Now count the rainy hours each day. Those whole-number counts are discrete. Sorted puts those counts in order too, leaving both original lists unchanged.