Wie man Informationen aus Benutzereingaben sammelt und an anderer Stelle anwendet

Hi Ich bin neu in der Programmierung und versuche, einen Code zu schreiben, der Informationen aus der Eingabe sammelt und feststellt, ob es sich um ein gültiges Alphabet handelt.

Dies ist mein Code bisher

words = []
word = input('Character: ')
while word:
  if word not in words:
    words.append(word)
 word = input('Character: ')
print(''.join(words),'is a a valid alphabetical string.')

suppose I choose three letters then the output of my code then pressed enter on the fourth, 
the code will be:

Character:a
Character:b
Character:c
Character:
abc is a valid alphabetical string.

I want to add to this code so that when I type in a character that is not
from the alphabet the code will do something like this.

Character:a
Character:b
Character:c
Character:4
4 is not in the alphabet.

So soll mein Programm funktionieren

Antworten auf die Frage(6)

Ihre Antwort auf die Frage