def _get_all_contestant_names_string(contestant_names: Sequence[str]):
  r"""Returns names [a,b,c] in the string format: \'a, b, and c\'."""
  all_contestants_string = ', '.join([name for name in contestant_names[:-1]])
  all_contestants_string = (
      f'{all_contestants_string}, and {contestant_names[-1]}'
  )
  return all_contestants_string
Returns names [a,b,c] in the string format: \'a, b, and c\'.
examples/deprecated/modular/environment/reality_show.py