filmov
tv
check If datatype is boolean python ||python

Показать описание
Boolean datatype=It is built in data type, which represent two value True or False.
This method is used to return or convert a value to a Boolean value .
A=20
B=30
A==b
True/false
Numbers can be used as bool values by using bool() .
Integer, float , or complex number having zero is considered as False,
Any Positive or Negative number then it is considered as True.
This method is used to return or convert a value to a Boolean value .
A=20
B=30
A==b
True/false
Numbers can be used as bool values by using bool() .
Integer, float , or complex number having zero is considered as False,
Any Positive or Negative number then it is considered as True.