I want to have a program that print out error messages when an integer or float value is enter into a string input. Example:
Enter name: 1234
Invalid name entered. Please enter a new one.
Enter name: Joe
Enter no. phone:123456789
(and so on..)
now I only have this:
while True:
    try:
        # Note: Python 2.x users should use raw_input, the equivalent of 3.x's input
        age = input("enter name: "))
    except ValueError:
        print("Invalid name.")
        continue
    else:
        break
if : 
    print("")
else:
    print("")
what do I need to put at the if else?
 
     
     
    