Liste d'impression Python avec Newline
my_list = [1, 2, 3, 4]
print(*my_list, sep="\n")
Frantic Fox
my_list = [1, 2, 3, 4]
print(*my_list, sep="\n")
>>> l = [1, 2, 3]
>>> print(' '.join(str(x) for x in l))
1 2 3
>>> print(' '.join(map(str, l)))
1 2 3
list = ['a','b','c']
for i in list:
print(i, end=' ')