Boolean Type
Boolean Type: bool
.
How to set a boolean variable
12345a = True b = False print(a) print(b)
Boolean operator examples
Operator | Returns |
---|---|
>= | True if a number is greater than or equal to another |
<= | True if a number is less than or equal to another |
== | True if two values are equivalent |
!= | True if two values are not equivalent |
&& | True if both values are True |
! | True if the value is False |
1print(4 == 6)
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 3. Capítulo 1
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Suggested prompts:
Pregunte me preguntas sobre este tema
Resumir este capítulo
Mostrar ejemplos del mundo real
Awesome!
Completion rate improved to 2.7
Boolean Type
Desliza para mostrar el menú
Boolean Type: bool
.
How to set a boolean variable
12345a = True b = False print(a) print(b)
Boolean operator examples
Operator | Returns |
---|---|
>= | True if a number is greater than or equal to another |
<= | True if a number is less than or equal to another |
== | True if two values are equivalent |
!= | True if two values are not equivalent |
&& | True if both values are True |
! | True if the value is False |
1print(4 == 6)
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 3. Capítulo 1