How can I check if a string only contains one word in python.
x = "tell hello"
if "tell" == x
print(True)
else
print(False)
In this case it should print False, because tell isnt the only Word in the string. But tell is always there. There is only the possibility that after tell is no Word following(in which case it should print true) and that an n amount of words is following(in which case it should print false).