You are viewing a single comment's thread. Return to all comments →
#!/bin/python3 import sys import numbers S = input().strip() try: intify = int(S) print (intify) except ValueError: print ("Bad String")
failed
#!/bin/python3 import sys import numbers S = input().strip() try: print (int(S)) except ValueError: print ("Bad String")
passes... C'mon...
Seems like cookies are disabled on this browser, please enable them to open this website
Day 16: Exceptions - String to Integer
You are viewing a single comment's thread. Return to all comments →
failed
passes... C'mon...