Write statements to display the position of the file pointer after reading two lines from a file linked to file object named fn.
Answer:
fn=open(
"sample.txt"
,
'r'
)
for
i
in
range(
0
,
2
,
1
):
l=fn.readline()
print(
"The position of file pointer is at: "
,fn.tell())