0
list without brackets
I have a list of items e.g. #code list = [1, 2, 3] print(list) #output [1, 2, 3] and I want to print it without the brackets like this: 1, 2, 3 how do I do it?
2 Respuestas
+ 4
EDITED
use:
print(', '.join([str(i) for i in list]))
0
Thanks, this is going to help me alot