How to use is_not() logical operation to return true a is not b in Python

1 Answer

0 votes
from operator import *      

a = 1
b = 1
print(is_not(a,b))  # if a is not b

a = 0
b = 3
print(is_not(a,b))  # if a is not b




'''
run:

False
True

'''

 



answered May 30, 2019 by avibootz

Related questions

1 answer 239 views
1 answer 232 views
1 answer 135 views
2 answers 207 views
...