Comment Comment by neillyons I remember reading that in early versions of Python there was no built in True and False. Each user would implement this themselves asTrue = 1False = 0then later these got added to the language. In Python 2 you could still reassign and swap them so that 'if False' was actually true!True, False = False, TruePython 3 you could no longer reassign them. parent neillyons 2 months ago
True = 1
False = 0
then later these got added to the language. In Python 2 you could still reassign and swap them so that 'if False' was actually true!
True, False = False, True
Python 3 you could no longer reassign them.