Question: Python Programming Consider this short code sequence, where variable f_obj is already initialized with a file object opened with mode r+: p1 = f_obj.tell() f_obj.write(some
Python Programming
Consider this short code sequence, where variable f_obj is already initialized with a file object opened with mode "r+": p1 = f_obj.tell() f_obj.write("some text") s = f_obj.read(10) # assume len(s)==10 p2 = f_obj.tell() diff = p2 - p1 Write below the value of variable diff.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
