How would I use a while loop so that if they enter a number it would ask them the again?
<pre><code>fn = input("Hello, what is your first name?")
firstname = (fn[0].upper())
ln = input("Hello, what is your last name?")
lastname = (ln.lower())
</code></pre>

<p>I want fn to be on a loop so that if they enter their a number instead of letters, it would repeat the question</p>

<p>I guess you need something like this</p>

<pre><code>final_fn = ""
while True:
    fn = input("Hello, what is your first name?")
    if valid(fn):
        final_fn = fn
        break
</code></pre>

<p>Define you validation method before it. An example would be as Joran mentioned</p>

<pre><code>def valid(fn):
    return fn.isalpha()
</code></pre>

python python-3.x