Find first in sequence (simple question)

Neal D. Becker ndbecker2 at
Mon Sep 13 21:23:04 CEST 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