Conteúdo do Curso
Introduction to Data Analysis in Python
Introduction to Data Analysis in Python
Boolean Type
Boolean Type: bool
.
How to set a boolean variable
a = 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 |
print(4 == 6)
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 3. Capítulo 1