python - How to check if the string is empty?

preview_player
Показать описание
#short
#python
#string
#comparison-operators
Does Python have something like an empty string variable where you can do:

Regardless, what's the most elegant way to check for empty string values? I find hard coding "" every time for checking an empty string not as good.
Рекомендации по теме
welcome to shbcf.ru