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

You have attempted of activities on this page