Day 16: Exceptions - String to Integer

  • + 7 comments

    For Python3 Remove "if name =='main'; before implementing

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