Source Code:
(back to article)
try: value = int("invalid") except ValueError: print("ValueError: invalid literal for int() with base 10")
Result:
Report an issue