Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python exception

#!/bin/python3

import sys


S = input().strip()

try:
    S = int(S)
    print(S)
except:
    print("Bad String")
Source by codingwithnick.in #
 
PREVIOUS NEXT
Tagged: #python #exception
ADD COMMENT
Topic
Name
7+2 =