Convert Python string into a boolean 🐍 #shorts

preview_player
Показать описание
n this video, we'll demonstrate how to convert a Python string into a boolean. You can't use bool(str) but instead need to do a == comparison. Lower case the string first though:
Рекомендации по теме