fhand = open('mbox-short.txt') πλήθος = 0 for γραμμή in fhand: πλήθος = πλήθος + 1 print('Πλήθος γραμμών:', πλήθος)