• Please help me. what is problem ?

Question related to mission Three Words

 
def f(words):
    words = 'hi huy hey 25 ok'
    for i in words.split():
        if i.isdigit():
            words = words[:words.find(i)]
            words = words.split()
            if len(words) > 2:
                return(True)
            else:
                return(False)

    if len(words) > 2:
        return(True)
    else:
        return(False)
print(f(str()))