Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (50.2k points)
edited by

I want to know why is the below statement in Python not explicitly prohibited?

>> True=False

>> True

False

My main concern is how True and False are handled by the Python interpreter?

1 Answer

0 votes
by (107k points)

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. 

Related questions

0 votes
2 answers
asked Oct 3, 2019 in Python by Tech4ever (20.3k points)
0 votes
4 answers

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...