How to convert from string to boolean in Python

preview_player
Показать описание
You can't use the bool() operator, but must check the value against a list of what you consider to be the "true" string values.
Рекомендации по теме