# enumerate() gives index and value together; equality is not above.
readings = [24, 28, 30]
limit = 28
for index, reading in enumerate(readings):
if reading > limit:
print(index, reading)
break
# Keep the increment inside the condition but do not use break.
readings = [29, 24, 30, 28]
count = 0
for reading in readings:
if reading > 28:
count += 1
print(count)