code: def display_breakdown(scores, outfile=None):
      
      total = 0
      outfile = open(outfile, 'w') if outfile else sys.stdout
  
      format.print_line('-')
      print('Point breakdown', file=outfile)
      for name, (score, max_score) in scores.items():
          print('    {}: {}/{}'.format(name, score, max_score), file=outfile)
          total += score
      print(file=outfile)
  
      print('Score:', file=outfile)
      print('    Total: {}'.format(total), file=outfile)
      return {'Total': total}
docs: Writes the point breakdown to `outfile` given a dictionary of scores.
      `outfile` should be a string.  If `outfile` is None, write to stdout.
  
      RETURNS:
      dict; 'Total' -> finalized score (float)