try and except error handling

 try:

    a = int(input("enter you number"))
    print(a)
except:
    print("error")

Comments

Popular posts from this blog