I\'m reading a True - False value from a file and I need to convert it to boolean. Currently it always converts it to True even if the value is set
True - False
True
>>> from str2bool import str2bool >>> str2bool('Yes') True >>> str2bool('FaLsE') False