adplus-dvertising
frame-decoration

Question

How do you change the file position to an offset value from the start?

a.

fp.seek(offset, 0)

b.

fp.seek(offset, 1)

c.

fp.seek(offset, 2)

d.

none of the mentioned

Posted under Python

Answer: (a).fp.seek(offset, 0)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. How do you change the file position to an offset value from the start?