def getBooleanFromValue(value):
 firstCharacter = str(value).lower().lstrip()[:1]
 return ((firstCharacter == 't') or (firstCharacter == '1'))

def getBooleanFromValue ( value ) : firstCharacter = str ( value ) . lower ( ) . lstrip ( ) [ : 1 ] return ( ( firstCharacter == 't' ) or ( firstCharacter == '1' ) )
get boolean from the word .