преобразовать строку в логический питон
def str2bool(v):
return str(v).lower() in ("yes", "true", "t", "1")
Kid Koder
def str2bool(v):
return str(v).lower() in ("yes", "true", "t", "1")
isTrue = "True" == "True"