Mar-02-2019, 03:05 AM
Hi, I'm also a noob but i tried it this way and it works fine. Let me know if this helps.
def askAge(): age = input("how old are you?") try: print(int(age)) except: print("You Must enter a number!") askAge()I couldn't tell from the way your post formatted but the last "askAge()" needs to be part of the except