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 - Concatenation and Repetition