Check Empty String In Python Using bool() Function

preview_player
Показать описание
How can you check if a string is empty in Python?

One approach is to to use the built-in bool() function which converts the string variable to a boolean value.

Рекомендации по теме