mesin pencari kata dalam python

def search(text, word):
    if word in text:
        result = "Word found"
        return result 
    else:
        result = "Word not found"
        return result

text = input()
word = input()

print(search(text, word))
Mr. Glitch