I have the following situation, I have a list of strings and I loop it like this:
list = [string1, string2, string3, string4]
for index, item in enumerate(list):
print(index, item)
Now what I want to do is if a specific condition is met to increment the loop index by 1. I know how to do this if I was to use a traditional numeric for loop, I just wondered if there was a way to do it in this situation.
Thanks a lot