IF statement in python went wrong

Hi all I am trying to get out output based on my if statement. So it is not working properly.

if My l2 list contains negative values or smaller values than l1 then the put put should be empty list and if l2>l1 then we should get l2 list.

Please let me know where I am doing wrong ?

@shashank.baganeACM You cannot compare a list of values against a single value like that.
See if this helps:
image

or this:
image

1 Like

Thanks @AmolShah Got it. I appreciate that you took time to look at this and giving me the solution

1 Like