Back
I want to know why is the below statement in Python not explicitly prohibited?
>> True=False>> TrueFalse
>> True=False
>> True
False
My main concern is how True and False are handled by the Python interpreter?
Kindly be informed that the boolean True, which is just like a string or any other built-in, is just a name that exists in the scope by default. You can rebind it similar to any other such name. For more information regarding the data types, do refer to the Python online course that will help you out in a better way.
31k questions
32.8k answers
501 comments
693 users