how to define bool and convast in python code example
Example: python bool()
# Returns the boolean value of the specified object
x = bool(1) # outputs True
# Returns the boolean value of the specified object
x = bool(1) # outputs True