Python question about booleans | SoloLearn: Learn to code for FREE!


Python question about booleans

Hello Dears I have a question in Python: True, False = False, True Print(True, False) Print(2 < 3) Can you explain it please?

3/17/2020 4:55:47 PM

Ablaqulova Mahliyo

7 Answers

New Answer


What you wrote up above doesn't work. You can not assign to keywords in Python. Please repair your post: 1.) Add the proper code in a formatted fashion. 2.) Add proper tags that help others finding your topic. 3.) Ask only one question per post.


I have a question is there a difference between software engineer and backend.frontend programmer ? Which are paid more and easier to work


True, False = False, True Print(True, False) Print(2 < 3)


Example boolean True = True True True = False False False = False True If you will see number enumerate (True) 1


Still wrong. Python is case-sensitive, you have to properly watch out for every letter.


The True and False is python build-in keyword. The keyword is a reserved word that can not be declared as a variable.


you can't assign variables to variables. if you want to assign it as a string, put double quotes on the second part.