Can someone please help me with this
name=input("What is your name?").lower()
for char in name:
if not char.isalpha():
print ("invalid name")
name=input("What is your name?").lower()
Unfortunately when I run it if i put the number 1 for name it will get it correct on the second try no matter what. and for example if i input 123 then the same process will repeat 3 times
What is your name?123
What is your name?123
invalid name
What is your name?bob
invalid name
What is your name?bob
invalid name
What is your name?bob
What is 9 - 8 ?
and if I enter 1
What is your name?1
invalid name
What is your name?bob
What is 7 - 4 ?