In Python, we could iterate using a for-loop and skip the indices using the skip
parameter as such:
max_num, jump = 100, 10
for i in range(0, max_num, jump):
print (i)
I could achieve the same with a while loop by doing this:
max_num, jump = 100, 10
i = 0
while i < max_num
print(i)
i+=jump
end
And using the same i+=jump
syntax shown below in the for-loop doesn't skip the index:
for i in range(0,max_num)
print(i)
i+=jump
end
Within a for-loop is "skipping" possible? If so, how?