motor de búsqueda de palabras en 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