0
True. , False (Python)
Обьесните пожалуйста по подробнее Что делают True и False
5 ответов
+ 1
I will happily answer your question if you translate your question into English. Sorry for not knowing Russian.
+ 1
Мади True and False are both boolean constant. when a condition is satisfied, it returns True, otherwise it returns False.
For example, 3 == 3 returns True, while 3 == 4 returns False.
In some earlier versions of Python True == False is valid. That means defining a variable named True with value False. But now True and False are reserved keywords so it is no longer valid.
0
They are values used as conditions for statements.
if condition:
codeblock
if the condition is True then the codeblock is ran, otherwise the codeblock is ignored and the program will continue like the if statement never existed.
0
(ENG)
What do the True and False in Python?
0
True and False are just values used in conditions of if and while statements.