Coding tips
Python List vs Tuple vs Set vs Dictionary: Differences, Speed and When to Use Each (Tested Examples)
Use a list for an ordered collection you'll change, a tuple for a fixed record that shouldn't change, a set for unique items and fast membership tests, and a dictionary to look values up by key. Here are the differences with tested code, timings and memory sizes.