Python Dapatkan nomor baris x dalam file

f=open('filename')
lines=f.readlines()
print lines[25]
print lines[29]
Dark Dugong