python print without optional argument

Solutions on MaxInterview for python print without optional argument by the best coders in the world

showing results for - "python print without optional argument"
Taina
10 Jul 2019
1a = [0, 1, 2, 3, 4]
2print(*a) # print 0 1 2 3 4
3print('[' + ' '.join(map(str, a)) + ']') # print [0 1 2 3 4]