How can I print a list in this way, for example:
l=[4,26,32]
I want to print the output as follows:
4 26 32
No comma and with a blank space on the same line. Thank you in advance.
How can I print a list in this way, for example:
l=[4,26,32]
I want to print the output as follows:
4 26 32
No comma and with a blank space on the same line. Thank you in advance.
This is simple!
print (str(l[0]) + ' ' + str(l[1]) + ' ' + str(l[2]))
Handling in list:
for i in l:
print (str(i) + ' ', end="");