boolean example program on python Example: python bool() # Returns the boolean value of the specified object x = bool(1) # outputs True