1 min readFeb 12, 2020
list_with_end_condition = [1, 2, 3, 4, 0, 9]
for c in list_with_end_condition:
if c == 0:
break
print(c)
One line more, but each collegue spends less time deciphering my code. Each line does one thing — it reads like pseudo code.
Number of lines should never be prioritized above code simplicity.