not operator in python

Farhan Tanvir Utshaw
1 min readJul 8, 2020

--

>>> list1=[1,2,3]
>>> list2=[1,2,3]
>>> list1 is not list2
True
>>> 4 not in list1
True

--

--

No responses yet