I wanted to know how to hide errors in python: Let's say I made a calculator and then typed:
if number1 != int:
print("NaN")
But it will print this message and give out the error which is built into python which is: Traceback (most recent call last):
but how do I hide this Traceback error and only show the error message which is "NaN"
Thank you for the answer.
if number1 != int:makes no sense. What exactly are you trying to do?