Answers for "how to convert an string to an int using try"

0

how to convert an string to an int using try

try:
fx = float(x)
fy = float(y)
except:
print ("Invalid input")
Posted by: Guest on March-15-2021

Code answers related to "how to convert an string to an int using try"

Browse Popular Code Answers by Language