Day 16: Exceptions - String to Integer

  • + 1 comment

    Doesn't work with python.... Error reading result file.You should use exception handling concepts.

    S = input() try: print(int(S)) except ValueError: print("Bad String") # raise Exception("Bad String")