while True: s=input('Input a word:') if s=='quit': break if len(s)<3: print ('your word is not enough') continue