Contenido del 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.
Any digit other than zero is True.
Tarea
You have three numbers of different numeric types, you have to return a boolean object from each of one.
Tarea
You have three numbers of different numeric types, you have to return a boolean object from each of one.
¿Todo estuvo claro?
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.
Any digit other than zero is True.
Tarea
You have three numbers of different numeric types, you have to return a boolean object from each of one.
Tarea
You have three numbers of different numeric types, you have to return a boolean object from each of one.
¿Todo estuvo claro?
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.
Any digit other than zero is True.
Tarea
You have three numbers of different numeric types, you have to return a boolean object from each of one.
Tarea
You have three numbers of different numeric types, you have to return a boolean object from each of one.
¿Todo estuvo claro?
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.
Any digit other than zero is True.
Tarea
You have three numbers of different numeric types, you have to return a boolean object from each of one.