a = True
b = False
print(a)
print(type(b))
a = True
b = False
print(a)
print(type(b))
True
<class 'bool'>
a = bool("True")
False
, 0, None
or 0 length : False
true
print(bool("True"))
print(bool("False"))
print(bool("True"))
print(bool("False"))
True
True
print(bool(0))
print(bool(1))
print(bool(""))
print(bool(0))
print(bool(1))
print(bool(""))
False
True
False