If your condition is
In order to avoid such typos it is more readable to write:
i > 0
then 2 is the correct answer.In order to avoid such typos it is more readable to write:
>>> my_list = [-1,4,-5,0,2,11,9,8,6] >>> min(item for item in my_list if 3 < item <= 8) 4
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.