filmov
tv
python - How to check if the string is empty?

Показать описание
#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.
#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.