Statement 1 uses seek()method can be used to position the file object at particular place in the file. It's syntax is: fileobject.seek(offset [, from_what]).
So,f.seek(-3,2) positions the fileobject to 3 bytes before end of file.
Output of 2 is: de (It reads 2 bytes from where the file object is placed.)