>>> from forum import no_opina >>> lusuaris = ['santpere;127;57;8', 'hackerx;32;2;0', 'rose;345;764;87', ... 'anneta;543;983;12', 'rllul;2;2;0', 'apolitic;322;345;32', ... 'nini;2372;7533;674', 'fonaments;372;1372;0'] >>> with open('dades_forum.txt', 'w') as f: ... for e in lusuaris: ... a = f.write (e+'\n') >>> no_opina ('dades_forum.txt') ['hackerx', 'rllul', 'fonaments']