def search(text, word):
if word in text:
print("Word found")
else:
print("Word not found")
text = str(input())
word = str(input())
print(search(text,word))
This code returns the following:
"Word found \
none"
When I use this entry:
"This is some sample text" \
"some"
The desired output would be: "Word found"