Let's talk about containment checks on lists in Python.
inoperator on a list
Have you ever used the
in operator to check whether a list contains a certain value?
This is a premium screencast available only to active Python Morsels subscribers.
Feel free to watch some of the free screencasts in the Data Structures series.
Need to fill-in gaps in your Python skills? I send weekly emails designed to do just that.