hi list:
In the following list, is there a simply way to find element less than 200
sandwiched between two numbers greater than 1000.
a = [3389, 178, 2674, 2586, 13731, 3189, 785, 1038, 25956, 33551]
in a, 178 is between 3389 and 2674. How this particular list can be selected
for further processing.
(sorry this is not homework question. I want to avoid looping, because I have
300K lines to parse through)
Thanks
Hs.
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor