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?

22nd May 2017, 6:43 PM
Jack
Jack - avatar
2 Antworten
+ 4
EDITED use: print(', '.join([str(i) for i in list]))
22nd May 2017, 6:45 PM
Ulisses Cruz
Ulisses Cruz - avatar
0
Thanks, this is going to help me alot
22nd May 2017, 6:50 PM
Jack
Jack - avatar