+ 5

What's the difference with using is and == in conditionals?

Code: if a is None: # Code if a == None: # Code

28th Jan 2018, 2:25 AM
luʁi
3 Answers
+ 5
@Ole113 That doesn't answer my question -_-
28th Jan 2018, 2:51 AM
luʁi
+ 2
You use == when your comparing something and use = when your assigning something.
28th Jan 2018, 2:51 AM
Ole113
Ole113 - avatar