[Solved] for loop over list break and continue
This is the way break works. If you want to iterate over the whole list, simply remove the break (or if you want to do something with the value, use pass as a placeholder). values = [1, 2, 3, 4, 5] for value in values: if value == 3: pass print(value) Output: 1 2 3 … Read more