Replaces a list comprehension with the for loop.