Была такая идея.
x=str(input("Введите слова через пробел и в конце *.*")) while x.endswith(".")==False or x.count(" ")<1 or x.count(" ")>19: print("Error") x=str(input("Введите слова через пробел и в конце *.*")) word1=(x.split(' ', 1)) x=list(x.split(' ')) for item in x: if word1!=item: print(item)