How to fix try except error on inventory program?

Maybe you could solve this with a try, except?

x = input("enter digit: ")
    x = int(x)
except ValueError:
    print(f"{x} is not an Integer")
    # Handle error in input 


CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top