Answers for "how to check string is none or not in python return value"

18

check if string is empty python

my_str = ""
if not my_str:
  print("empty")
else:
  print("not empty")
#output: empty
Posted by: Guest on May-09-2020

Code answers related to "how to check string is none or not in python return value"

Python Answers by Framework

Browse Popular Code Answers by Language