Python Day 16: Exceptions - String to Integer
Read a string, S, and print its integer value; if S cannot be converted to an integer, print Bad String.
S = input().strip()
print ("Bad String")
Popular HackerRank Python Solutions
Codesadda.com is your home of programming solutions, tutorials, video tutorials and much more.
Sign Up for our weekly newsletter to get update about new content.