Код: Выделить всё
names = ['Adam', 'Bob', 'Cyril']
text = f"Winners are:\n{'\n'.join(names)}"
print(text)
Код: Выделить всё
Winners are:
Adam
Bob
Cyril
Подробнее здесь: https://stackoverflow.com/questions/447 ... mat-output
Код: Выделить всё
names = ['Adam', 'Bob', 'Cyril']
text = f"Winners are:\n{'\n'.join(names)}"
print(text)
Код: Выделить всё
Winners are:
Adam
Bob
Cyril