June 2017
Beginner
352 pages
8h 39m
English
Finally, as with most collection types in Python, we can test for membership using the in operator:
>>> 5 in (3, 5, 17, 257, 65537)True
Also non-membership with the not in operator:
>>> 5 not in (3, 5, 17, 257, 65537)False
Read now
Unlock full access