How do I make a:
if str(variable) == [contains text]:
condition?
(or something, because I am pretty sure that what I just wrote is
For python 3, you can use bool()
>>> bool(None) False >>> bool("") False >>> bool("a") True >>> bool("ab") True >>> bool("9") True