names = []
selection = "S"
while selection == "S":
    name = input('Ingresa un nombre: ')
    names.append(name)
    selection = input('Deseas ingresar otro nombre?: ')
print(','.join(names))
175eceed7646a3315aea01c61b3a6bbb3ae7ec25
<mask token>

<mask token>
while selection == 'S':
    name = input('Ingresa un nombre: ')
    names.append(name)
    selection = input('Deseas ingresar otro nombre?: ')
print(','.join(names))

names = []
selection = 'S'
while selection == 'S':
    name = input('Ingresa un nombre: ')
    names.append(name)
    selection = input('Deseas ingresar otro nombre?: ')
print(','.join(names))

names = []
selection = "S"
while selection == "S":
    name = input('Ingresa un nombre: ')
    names.append(name)
    selection = input('Deseas ingresar otro nombre?: ')
print(','.join(names))