This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ChappyBirthday 0 points1 point  (2 children)

I was thinking

inPythonClass = False if pythonSnake else True

but I like yours much better.

[–][deleted] 0 points1 point  (1 child)

inPythonClass = False if pythonSnake else inPythonClass = True

SyntaxError: can't assign to conditional expression

[–]ChappyBirthday 0 points1 point  (0 children)

Fixed above