how to check if value is blank 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