Answers for "python not equal to empty string"

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
0

python add string to empty string

s += "blabla"
Posted by: Guest on March-04-2021

Python Answers by Framework

Browse Popular Code Answers by Language