• worked on spyder does not work here. what is missi

Question related to mission Three Words

 
      #I cannot see what is wrong!      
def checkio(words: str) -> bool:
    for i in range(len(words_list)):
        if words_list[i].isalpha():
            print(i)
            yes_no.append(1)
        else:
                yes_no.append(0)
    counter = 0
    for i in range(len(yes_no)):

        if yes_no[i]==1:
            counter += 1
        else:
            counter=0
        print("counterrr ", counter)
        if counter >= 3:
            return True 
            break


    return False
7