Validating a users input
<p>I'm fairly new to Python and I'm using a while True loop. Inside that loop I have </p>

<pre><code>Sentence= input("please enter a sentence").lower().split()
</code></pre>

<p>However I want to create validation so an error message appears when the user inputs a number instead of a letter. I was researching and saw the use of .isalpha. Would anyone where this would go in the whie true loop to create and error message for inputting numbers? </p>

<pre><code>sentence = input("please enter a sentence").lower().split()
for word in sentence:
    if not word.isalpha():
        print("The word %s is not alphabetic." % word)
</code></pre>

python