Answers for "python print without optional argument"

0

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]
Posted by: Guest on October-20-2020

Code answers related to "python print without optional argument"

Python Answers by Framework

Browse Popular Code Answers by Language