(string)
Converts a string to a boolean
Converts a string to a boolean
Converts a string to a boolean
def str_to_bool(string):
    """ Converts a string to a boolean """
    if string == 'True':
        return True
    if string == 'False':
        return False
    raise ValueError
def str_to_bool ( string ) : if string == 'True' : return True if string == 'False' : return False raise ValueError