How would I use that errorcheck procedure throughout my program so I can check whether or not the user has inputted the correct data type?
def errorcheck():
valid=False
while valid==False:
try:
()=True
except ValueError:
print("Please enter an appropriate value")
valid=False
errorcheckage=int(input("How old are you?"))
forename=str(input("What is your firstname?"))
username=forename[0:3]+age
print(username)