[Solved] the difference between zip and enumerat in for loop? [closed]
At issue here is your use of the zip() function. It produces a list of tuples up front. You created a copy of the original list with numbers added. From the documentation: This function returns a list of tuples, where the i-th tuple contains the i-th element from each of the argument sequences or iterables. … Read more