10.5. List MembershipΒΆ

in and not in are boolean operators that test membership in a sequence. We used them previously with strings and they also work here.

Check your understanding

Next Section - 10.6. Concatenation and Repetition