How do I make a:
if str(variable) == [contains text]:
condition?
(or something, because I am pretty sure that what I just wrote is
Some time we have more spaces in between quotes, then use this approach
a = " " >>> bool(a) True >>> bool(a.strip()) False if not a.strip(): print("String is empty") else: print("String is not empty")