python print without optional argument code example
Example: python print without optional argument
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]
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]