list1 = [1, 2, 3, 4]
i\'m trying to figure out a way to change the step value for each printed i
What I\'ve tried
r = 0 for
This is not supported by the range function. You have to do the iteration explicitly.
for elem in list1: i += elem if i > 10: break print i