I am trying to define a function in pre-logic script code on ArcGIS 10.8. While running it, it shows the failure. I am not able to figure out the reason behind it.
I have defined the following function:
def no_mons(mon_in):
if (mon_in<0.8 and mon_in>0):
return 222
The code block shows the following error-
ERROR 000989 Python syntax error: Parsing error SyntaxError: invalid syntax (line 1)