Table of Contents
show
Membership operators are used to test if a sequence is presented in an object
Example
x=["python","chemistry"]
print("python in x", "python" in x)
print("pysics not in x", "pysics" not in x)
Output
('python in x', True)
('pysics not in x', True)
Views: 4