def temp_convert(var): try: return int(var) except (ValueError, Argument): print ("The argument is not a numbers\n", Argument) temp_convert("abc")