Home
Python Tutorial
Introduction
Data Type
Statement
Operator
String
Tuple
List
Dictionary
Collections
Function
Class
File
Buildin Function
Buildin Module
Database
Regular Expressions
Thread
Tkinker
wxPython
XML
Network
CGI Web
Windows
Menu
Convert a value to a Boolean, using the standard truth testing procedure. : bool « Buildin Function « Python Tutorial
Python Tutorial
Buildin Function
bool
print bool(
'this is a test'
) print bool(42) print bool(
''
) print bool(0)
13.4.bool
13.4.1.
Convert a value to a Boolean, using the standard truth testing procedure.
13.4.2.
Python objects have an inherent True or False value