<gh_stars>0

file = 'data_asg4/preprocessed_data/test.en'
files = []
d = {}
for i in range(1):
    files.append(file)
    #files.append(file + str(i) + '.txt')
    lines = []
    with open(files[i],'r') as f:
        for line in f.readlines():
            lines.append(line.split())
    d[files[i]] = lines

avg = []
for file in d:
    num = 0
    for line in d[file]:
        num += len(line)
    avg.append(num/500)

print(avg)