Day 16: Exceptions - String to Integer

  • + 3 comments

    Python is not checkable i think. Some file read error. Is this code OK?

    if __name__ == '__main__':
        S = input()
        if S.isnumeric():
            print(int(S))
        else:
            print("Bad String")