Code:
def is_num(num1):
try:
int(num1)
return True
except ValueError:
return False
Consol Output:
except ValueError:
^
SyntaxError: invalid syntax
I started python about 5 days ago so I don't relly understand the error or how to fix it. Please help.