The return statement in 1st else ends the else loop. You can do def pre_word(word): if word.startswith("pre") and word.isalpha(): ...
確定! 回上一頁