How do I check for equals in a conditional?

why can’t i use the ‘=’ sign in the IF statement to check if the argument is None

There is no “= sign” in Python; there is an assignment operator, =, and a comparison operator, ==. I suspect you are referring to the latter.

You could use the comparison operator to test for None, although according to the docs, is is strongly preferred in this particular case.

1 Like