Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

check if string is empty python

my_str = ""
if not my_str:
  print("empty")
else:
  print("not empty")
#output: empty
 
PREVIOUS NEXT
Tagged: #check #string #empty #python
ADD COMMENT
Topic
Name
6+6 =