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.

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Aug 12, 2018 at 18:43
0

1 Answer 1

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):
PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
answered Aug 12, 2018 at 19:41

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.