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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!