def _(item): print('\n', item, '. feladat:\n', sep='') _(1) lst= [[int(str) for str in line.split()] for line in open('inf_e_20121019_m_04_kep.txt')]