Wrong output from python list

I wrote a python script but the output is wrong as shown in the picture , can someone help me

I’ve found that within dynamo the python nodes aren’t very happy using ‘and’… I have separated the statements in the past to fix his.

I removed and ,but same problem appears

Have you tried nested statements?

If you’re still having issue post the code as a dyn file or text rather than a screen grab.

I reach to solution , the problem is that the input to python node was string not integer so i convert it to numbers

2 Likes