>>> from forum import wrong_name >>> lusers = ['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('data_forum.txt', 'w') as f: ... for e in lusers: ... a = f.write (e+'\n') >>> wrong_name ('data_forum.txt') True