- 2
What is the use of NOT? In python?
2 Respostas
0
It's useful for functions that doesn't have negative form like "in".
if "e" in "hello":
print "e is in the word 'hello'"
if "x" not in "hello":
print "the letter x is not in 'hello'"
Both conditionals are true.