Is there a way to not convert a variable to a different type if it can't be converted?
For example :
numberOneString = input("Input a number")
numberOne = int(numberOne)
print(numberOneString)
This gives an error when you try to run it if the input is a string that is not a number. Is there a way to stop that code from running if the variable cannot be converted to an int but run the code if it can be converted into an int?