0 points

Python in statement


PHOTO EMBED

Fri Oct 30 2020 20:19:26 GMT+0000 (UTC)

Saved by @ianh #python #in #list

# Python program to illustrate 
# Finding common member in list  
# using 'in' operator 
list1=[1,2,3,4,5] 
list2=[6,7,8,9] 
for item in list1: 
    if item in list2: 
        print("overlapping")       
else: 
    print("not overlapping") 
content_copyCOPY

https://www.geeksforgeeks.org/python-membership-identity-operators-not-not/