Anonymous Anonymous - 1 month ago
327 0

No description

Python

vergelijk_woordenboek.py

#https://raw.githubusercontent.com/titoBouzout/Dictionaries/master/Dutch.dic

with open('resultaten.txt', 'r') as file1:
	with open('woordenboek', 'r') as file2:
		same = set(file1).intersection(file2)

same.discard('\n')

with open('matches.txt', 'w') as file_out:
	for line in same:
		file_out.write(line)