0
Can you use not instead of != ?
In Python
3 Antworten
+ 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) .