>>> from cracks import cracks >>> d = {'Joan Pera Pla':[7.0, 8.5, 9.5, 6.0, 9.8, 8.16], ... 'Roser Puig Pi':[9.4, 9.2, 9.5, 9.1, 9.3, 9.3], ... 'Anna Cucurull Alzina':[5.0, 5.0, 5.5, 4.5, 5.0, 5.0], ... 'Pol Riu Mont':[10.0, 8.0, 10.0, 8.0, 9.0, 9.0], ... 'Eric Politja Aviat':[6.0, 7.0, 9.0, 8.0, 10.0, 8.0]} >>> t = ('Algebra', 'Calculus', 'Programming', ... 'Physics', 'Chemistry') >>> cracks (d, t, 'greats.txt') >>> f = open ('greats.txt', 'r') >>> llista = f.readlines() >>> llista.sort() >>> llista2 = ['The average mark of Pol Riu Mont is 9.0\n', ... 'The average mark of Roser Puig Pi is 9.3\n', ... 'The mark of Eric Politja Aviat in Chemistry is 10.0\n', ... 'The mark of Eric Politja Aviat in Programming is 9.0\n', ... 'The mark of Joan Pera Pla in Chemistry is 9.8\n', ... 'The mark of Joan Pera Pla in Programming is 9.5\n', ... 'The mark of Pol Riu Mont in Algebra is 10.0\n', ... 'The mark of Pol Riu Mont in Chemistry is 9.0\n', ... 'The mark of Pol Riu Mont in Programming is 10.0\n', ... 'The mark of Roser Puig Pi in Algebra is 9.4\n', ... 'The mark of Roser Puig Pi in Calculus is 9.2\n', ... 'The mark of Roser Puig Pi in Chemistry is 9.3\n', ... 'The mark of Roser Puig Pi in Physics is 9.1\n', ... 'The mark of Roser Puig Pi in Programming is 9.5\n'] >>> if set(llista) != set(llista2): ... print(llista)