list without brackets | Sololearn: Learn to code for FREE!

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?

5/22/2017 6:43:30 PM

Jack

2 Answers

New Answer

+4

EDITED use: print(', '.join([str(i) for i in list]))

0

Thanks, this is going to help me alot