Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Boolean Type | Control Flow
Introduction to Data Analysis in Python
course content

Conteúdo do Curso

Introduction to Data Analysis in Python

Introduction to Data Analysis in Python

1. Basics
2. Data Types
3. Control Flow
4. Functions and Modules
5. Introduction to NumPy

Boolean Type

Boolean Type: bool.

How to set a boolean variable

12345
a = True b = False print(a) print(b)
copy

Boolean operator examples

OperatorReturns
>=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
1
print(4 == 6)
copy
question-icon

Fill in the gaps to receive True everywhere.

10 <=
9 ==

8 !=

Clique ou arraste solte itens e preencha os espaços

Tudo estava claro?

Seção 3. Capítulo 1
We're sorry to hear that something went wrong. What happened?
some-alt