carIndex = next((index for index, name in enumerate(car.name for car in
    cars if 'VW' in car.name or 'Poodle' in car.name)), -1)
Python: How to re-use list comprehensions after they are created in an expression