how to check a empty string variable in python code example
Example: check if string is empty python
my_str = ""
if not my_str:
print("empty")
else:
print("not empty")
#output: empty
my_str = ""
if not my_str:
print("empty")
else:
print("not empty")
#output: empty