Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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]
 
PREVIOUS NEXT
Tagged: #python #print #optional #argument
ADD COMMENT
Topic
Name
2+9 =