Day 16: Exceptions - String to Integer

  • + 1 comment

    I made a code in python using try and except, however this error is appearing in the submition "Error reading result file.You should use exception handling concepts." if name == 'main': S = input() try: integer=int(S) print(str(integer)) except ValueError: print("Bad String") pass except Exception: print("Bad String")

        pass