Find first in sequence (simple question)

Neal D. Becker ndbecker2 at verizon.net
Mon Sep 13 15:23:04 EDT 2004


What is an efficient way to find the first element in a sequence meeting
some condition?

For example, the first number > x in a list of numbers.





More information about the Python-list mailing list