Parsing file dan menambahkan nomor saat memulai setiap kalimat line python

import fileinput
import sys

for line in fileinput.input(['./ampo.txt'], inplace=True):
    sys.stdout.write('EDF {l}'.format(l=line))
Nice Narwhal