Check if every elements satisfies a condition
for x in numbers: if x % 2 != 0: return False return True all(x % 2 == 0 for x in numbers) # it's a generator, stops at the first occurrence