Asked about Lists, dictionaries and sets

Why is checking membership in a set faster than in a list?

An answer that works

A list has to compare against each item in turn, so the time grows with its length. A set uses a hash table, so it jumps straight to where the item would be. That takes the same time regardless of size.

Reading an answer is not being able to give one. The section that teaches this is Lists, dictionaries and sets, 3 hours of Python.

Learn this properly