1

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.

4

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):

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.