import os
array = []
with open('_Data.txt') as f:
    for line in f:
        array.append(line.rstrip('\n'))
for i in range(1, 2142):
    os.rename('HalfApple (' + str(i) + ').png', array[i - 1] + '-' + str(i) +
        '.png')

d6caff3770307a9b6ef75c80916567900fa925ea
<mask token>

<mask token>
with open('_Data.txt') as f:
    for line in f:
        array.append(line.rstrip('\n'))
for i in range(1, 2142):
    os.rename('HalfApple (' + str(i) + ').png', array[i - 1] + '-' + str(i) +
        '.png')

<mask token>
array = []
with open('_Data.txt') as f:
    for line in f:
        array.append(line.rstrip('\n'))
for i in range(1, 2142):
    os.rename('HalfApple (' + str(i) + ').png', array[i - 1] + '-' + str(i) +
        '.png')

import os
array = []
with open('_Data.txt') as f:
    for line in f:
        array.append(line.rstrip('\n'))
for i in range(1, 2142):
    os.rename('HalfApple (' + str(i) + ').png', array[i - 1] + '-' + str(i) +
        '.png')
