code: def fileSize(f):
      '''returns the size of a file like object in bytes/octets'''
      offset = f.tell()
  
      f.seek(0, 2)
      size = f.tell()
  
      f.seek(offset)  # return to the previous position in the file
      return sizf fileSize(f):
      '''returns the size of a file like object in bytes/octets'''
      offset = f.tell()
  
      f.seek(0, 2)
      size = f.tell()
  
      f.seek(offset)  # return to the previous position in the file
      return size
docs: returns the size of a file like object in bytes/octets