Steventh
0
Q:

python is not

arr = ['a','b','c','d','e','f']

if 'g' not in arr:
    print('g is not in the list')
3
li = [1,2,'a','b']
if 'hello' not in li:
    print('hello is not in the list')
3
result is not None
2
# False
print(not(1 == 1))

# True
print(not(1 == 2))
1
x = 10
if not x:
    print("True")
else:
    print("False")
3

New to Communities?

Join the community