def _get_conjunction_of_names_string(
    player_names: Sequence[str], and_or: str = 'or'
) -> str:
  """Get a string listing the players [a, b, c] like 'a, b, or c'."""
  player_names_str = ''
  if len(player_names) > 1:
    player_names_str = ', '.join(player_names[:-1])
    player_names_str += f', {and_or} {player_names[-1]}'
  elif len(player_names) == 1:
    player_names_str = player_names[0]
  return player_names_str
Get a string listing the players [a, b, c] like 'a, b, or c'.
examples/deprecated/modular/environment/state_formation.py