0
Can you use not instead of != ?
In Python
3 Answers
+ 5
It depends on the circumstance.
`!=` is better for comparing values whilst `is not` is better for comparing object locations.
Check this out for more details: https://www.tutorialspoint.com/difference-between-and-is-not-operator-in-JUMP_LINK__&&__python__&&__JUMP_LINK
+ 4
Fun zone ,
maybe you can share your code or a snippet as sample for us?
+ 1
ŠŠµŃ, Š½ŠµŠ»ŃŠ·Ń ŠøŃŠæŠ¾Š»ŃŠ·Š¾Š²Š°ŃŃ not Š²Š¼ŠµŃŃŠ¾ != , ŠµŠ³Š¾ Š½ŃŠ¶Š½Š¾ ŠøŃŠæŠ¾Š»ŃŠ·Š¾Š²Š°ŃŃ Š“Š»Ń boolean Š·Š½Š°ŃŠµŠ½ŠøŠ¹, Š“Š¾ŠæŃŃŃŠøŠ¼, not True(False) not False(True) .