Changes
no edit summary
for x in range(len(ans)):<br />
if ans[x][1]==m:<br />
f_ftsolution.write(ans[x][0])<br /> f_ftsolution.write("\n")</p>
<p>solution.close()</p>