Use a generator expression and then with a default value of 0 if you are not going to store a list creating it is pointless:
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)
0, , , , . , :
carIndex = next((index for index, car in enumerate(cars)
if any(x in car.name for x in ("VW","Poodles"))), -1)
:
carIndex = next((0 for _ in (car for car in
cars if "VW" in car.name or "Poodle" in car.name)),-1)
:
carIndex = 0 if any("VW" in car.name or "Poodle" in car.name for car in cars) else -1