get the first item from an iterable that matches a condition code example Example: get the first item from an iterable that matches a condition a = [] item = next((x for x in a), None)