code: def file_length(in_file):
      '''Function to return the length of a file.'''
  
      fid = open(in_file)
      data = fid.readlines()
      fid.close()
      return len(dataf file_length(in_file):
      '''Function to return the length of a file.'''
  
      fid = open(in_file)
      data = fid.readlines()
      fid.close()
      return len(data)
docs: Function to return the length of a file.