Day 16: Exceptions - String to Integer

  • + 0 comments
    s=input()
    try:
        s=int(s)
        print(s)
    except ValueError: 
        print("Bad String")