Conteúdo do Curso
Python Data Types
Python Data Types
Python bool() Function
In Python there is bool()
function that converts variables of any type into a variable of boolean type (True or False). Let's look at an example for better understanding.
python
python
python
Any digit other than zero is True.
python
Tarefa
Swipe to start coding
You have three numbers of different numeric types, you have to return a boolean object from each of one.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 2. Capítulo 2
Python bool() Function
In Python there is bool()
function that converts variables of any type into a variable of boolean type (True or False). Let's look at an example for better understanding.
python
python
python
Any digit other than zero is True.
python
Tarefa
Swipe to start coding
You have three numbers of different numeric types, you have to return a boolean object from each of one.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 2. Capítulo 2