Is it possible to prevent the for loop from proceeding to the next value in the list/iterator if a certain condition is satisfied?
lst = list('abcde')
for alphabet in lst:
if some_condition:
# somehow prevent the for loop from advancing so that in the
# next iteration, the value of alphabet remains the same as it is now
# do something
for letter in 'abcde':lstwhich in my case is a hodge-podge of many types!