+ 3

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?

17th Mar 2020, 4:55 PM
Ablaqulova Mahliyo
Ablaqulova Mahliyo - avatar
9 Respostas
+ 6
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.
17th Mar 2020, 5:04 PM
HonFu
HonFu - avatar
+ 2
I have a question is there a difference between software engineer and backend.frontend programmer ? Which are paid more and easier to work
17th Mar 2020, 4:58 PM
Ablaqulova Mahliyo
Ablaqulova Mahliyo - avatar
+ 2
True, False = False, True Print(True, False) Print(2 < 3)
17th Mar 2020, 5:12 PM
Ablaqulova Mahliyo
Ablaqulova Mahliyo - avatar
+ 2
The True and False is python build-in keyword. The keyword is a reserved word that can not be declared as a variable.
18th Aug 2020, 10:09 PM
Md Kamruzzaman
Md Kamruzzaman - avatar
+ 1
Still wrong. Python is case-sensitive, you have to properly watch out for every letter.
17th Mar 2020, 5:16 PM
HonFu
HonFu - avatar
+ 1
Example boolean True = True True True = False False False = False True If you will see number enumerate (True) 1
27th Mar 2020, 5:53 AM
Baxtishod Davronov
Baxtishod Davronov - avatar
0
you can't assign variables to variables. if you want to assign it as a string, put double quotes on the second part.
28th Sep 2020, 5:52 AM
Arha
Arha - avatar
15th Nov 2020, 3:06 PM
HonFu
HonFu - avatar
0
Hello Ablaqulova. In your question; the wrong is your attempt to assign a value for reserved word in Pyhton. Some words are reserved by programming language itself. So you can NOT assign anything to "True" or "False". SyntaxError: can't assign to keyword
29th Nov 2020, 12:00 PM
cuma tekin Topuz
cuma tekin Topuz - avatar