Question: Can someone please help me with my python code? I am trying to make it display an error message if the user enters a number
Can someone please help me with my python code? I am trying to make it display an error message if the user enters a number instead of a string. Thank you.
name = str(input("Enter the account holders name: ")) while (name >= 'a' and name <= 'z') or (name >= 'A' and name <= 'Z'): print("Enter characters only") name = str(input("Enter the account holders name: ")) print("Yatata")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
