Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
True. , False (Python)
ŠŠ±ŃŠµŃŠ½ŠøŃŠµ ŠæŠ¾Š¶Š°Š»ŃŠ¹ŃŃŠ° ŠæŠ¾ ŠæŠ¾Š“ŃŠ¾Š±Š½ŠµŠµ Š§ŃŠ¾ Š“ŠµŠ»Š°ŃŃ True Šø False
5 Respostas
+ 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.