# Example code, write your program here
from os import listdir
from os.path import isfile, join

mypath = 'data'
onlyfiles = [f for f in listdir(mypath) if isfile(join(mypath, f))]
onlyfiles = [f for f in onlyfiles if '.txt' in f]

for file in onlyfiles:
    with open('data/' + file, encoding='ISO-8859-15') as f:
        data = f.read()
    with open('output/' + file, 'w', encoding='utf-8') as f:
        data = data.strip()
        f.write(data)


356a6725968f926f35ca4061d725dba660d3506c
<mask token>

<mask token>
for file in onlyfiles:
    with open('data/' + file, encoding='ISO-8859-15') as f:
        data = f.read()
    with open('output/' + file, 'w', encoding='utf-8') as f:
        data = data.strip()
        f.write(data)

<mask token>
mypath = 'data'
onlyfiles = [f for f in listdir(mypath) if isfile(join(mypath, f))]
onlyfiles = [f for f in onlyfiles if '.txt' in f]
for file in onlyfiles:
    with open('data/' + file, encoding='ISO-8859-15') as f:
        data = f.read()
    with open('output/' + file, 'w', encoding='utf-8') as f:
        data = data.strip()
        f.write(data)

from os import listdir
from os.path import isfile, join
mypath = 'data'
onlyfiles = [f for f in listdir(mypath) if isfile(join(mypath, f))]
onlyfiles = [f for f in onlyfiles if '.txt' in f]
for file in onlyfiles:
    with open('data/' + file, encoding='ISO-8859-15') as f:
        data = f.read()
    with open('output/' + file, 'w', encoding='utf-8') as f:
        data = data.strip()
        f.write(data)

# Example code, write your program here
from os import listdir
from os.path import isfile, join

mypath = 'data'
onlyfiles = [f for f in listdir(mypath) if isfile(join(mypath, f))]
onlyfiles = [f for f in onlyfiles if '.txt' in f]

for file in onlyfiles:
    with open('data/' + file, encoding='ISO-8859-15') as f:
        data = f.read()
    with open('output/' + file, 'w', encoding='utf-8') as f:
        data = data.strip()
        f.write(data)

