word = 'eat'
sent = "we don't beat you we beat the competition"
if word in sent:
print("Present")
There is no 'eat' in the sentence but still, it is showing that eat is available. I know that eat is within beat but I want to find whether 'eat' alone is available or not instead of present in some other words. How to do it. Thank You.