Let's talk about containment checks on lists in Python.
in
operator on a listHave you ever used the in
operator to check whether a list contains a certain value?
This works:
...
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.