try except error handling

 try:

    a = int(input("enter your age: "))
    print (a)
except:
    print("some error occured")

Comments

Popular posts from this blog