I am trying to identify category based on two continuous variables and using IF ELSE logic for this. Current Code
I intent to add elif statement, but even this code is throwing script error.
Both attributes are set to double, but I have also tried this by converting them to long int.
1 Answer 1
Python is case sensitive so AND
is not the same as and
, lowercase is correct.
Also try enclosing both checks in one parenthesis:
if (10<=NMLY<=25 and 40<=GIDN<=70):
Explore related questions
See similar questions with these tags.