code: def head(self, n=10):
          
          r = self.__repr__().split('\n')
          print('\n'.join(r[:n]), end=' ')
docs: Display the top of the file.
  
          Args:
              n (int): Number of lines to display