Python Imprimer sans argument facultatif
a = [0, 1, 2, 3, 4]
print(*a) # print 0 1 2 3 4
print('[' + ' '.join(map(str, a)) + ']') # print [0 1 2 3 4]
Makyu
a = [0, 1, 2, 3, 4]
print(*a) # print 0 1 2 3 4
print('[' + ' '.join(map(str, a)) + ']') # print [0 1 2 3 4]