title: how to loop through the user defined function?
body: <p>I have this program:</p>
  
  <pre><code>word = input('Customer Name: ')
  def validateCustomerName(word):
      while True:
          if all(x.isalpha() or x.isspace() for x in word):
              return True
  
          else:
              print('invalid name')
              return False
  
  validateCustomerName(word)
  </code></pre>
  
  <p>I want the program to repeat to ask the user to input their name if their name is entered wrongly such as if it has numbered in it.
  Return True if the name is valid and False for invalid</p>
  
  <p>output:</p>
  
  <pre><code>Customer Name: joe 123
  invalid name
  </code></pre>
  
  <p>expected output:</p>
  
  <pre><code>Customer Name: joe 123
  invalid name
  Customer Name: joe han
  &gt;&gt;&gt;
  </code></pre>
  
  <p>Am I missing something in the program?...Thanks</p>