while True:
try:
name = str(input("Enter a name? "))
except ValueError:
print("Enter a string of letters only!")
break
finally:
print("String value accepted,", name)
break
That's my code but the error I'm encountering is that some numbers or numerical values can also be strings so how do I make that program accept only letters?