#!/usr/bin/env python3
import json

inputfile = open('03-result-memory.json')
data = json.load(inputfile)
inputfile.close()

results = {}

for record in data:
	year = int(record['date'])
	century = year // 100
	if century not in results:
		results[century] = 0
	results[century] += 1

outputfile = open('04-results-years.tsv', 'w')
outputfile.write('Jahrhundert\tAnzahl\n')
for century in sorted(results):
	outputfile.write(str(century + 1) + '\t' + str(results[century]) + '\n')
outputfile.close()

530dcc5287b5cdd85b0e0e67807fde189207c7ea
<mask token>

<mask token>
inputfile.close()
<mask token>
for record in data:
    year = int(record['date'])
    century = year // 100
    if century not in results:
        results[century] = 0
    results[century] += 1
<mask token>
outputfile.write('Jahrhundert\tAnzahl\n')
for century in sorted(results):
    outputfile.write(str(century + 1) + '\t' + str(results[century]) + '\n')
outputfile.close()

<mask token>
inputfile = open('03-result-memory.json')
data = json.load(inputfile)
inputfile.close()
results = {}
for record in data:
    year = int(record['date'])
    century = year // 100
    if century not in results:
        results[century] = 0
    results[century] += 1
outputfile = open('04-results-years.tsv', 'w')
outputfile.write('Jahrhundert\tAnzahl\n')
for century in sorted(results):
    outputfile.write(str(century + 1) + '\t' + str(results[century]) + '\n')
outputfile.close()

import json
inputfile = open('03-result-memory.json')
data = json.load(inputfile)
inputfile.close()
results = {}
for record in data:
    year = int(record['date'])
    century = year // 100
    if century not in results:
        results[century] = 0
    results[century] += 1
outputfile = open('04-results-years.tsv', 'w')
outputfile.write('Jahrhundert\tAnzahl\n')
for century in sorted(results):
    outputfile.write(str(century + 1) + '\t' + str(results[century]) + '\n')
outputfile.close()

#!/usr/bin/env python3
import json

inputfile = open('03-result-memory.json')
data = json.load(inputfile)
inputfile.close()

results = {}

for record in data:
	year = int(record['date'])
	century = year // 100
	if century not in results:
		results[century] = 0
	results[century] += 1

outputfile = open('04-results-years.tsv', 'w')
outputfile.write('Jahrhundert\tAnzahl\n')
for century in sorted(results):
	outputfile.write(str(century + 1) + '\t' + str(results[century]) + '\n')
outputfile.close()
