I have a simple question. I'm just wanting to know how I would have my program read the "input()" and see if there are integers or any kind of number in the string, and if so then print out a message saying so. Pretty much I just want to know how I would make sure that no one enters in a number for their name. Thanks!
yn = None
while yn != "y":
print("What is your name?")
name = input()
print("Oh, so your name is {0}? Cool!".format(name))
print("Now how old are you?")
age = input()
print("So your name is {0} and you're {1} years old?".format(name, age))
print("y/n?")
yn = input()
if yn == "y":
break
if yn == "n":
print("Then here, try again!")
print("Cool!")