Now I know that it is not safe to modify the list during an iterative looping. However, suppose I have a list of strings, and I want to strip the strings themselves. Does re
One more for loop variant, looks cleaner to me than one with enumerate():
for idx in range(len(list)): list[idx]=... # set a new value # some other code which doesn't let you use a list comprehension