How to print an array without brackets but with the quotation marks on it?
I have:
a = ['1','2','3','4','5']
' '.join(map(str, a))
Result I'm receiving:
1, 2, 3, 4, 5
Expected Result (wanted):
'1','2','3','4','5'
(with the commas and the quotation marks)
'1 2 3 4 5'print(', '.join(repr(i) for i in a))will do proper quoting even with quotation marks in the string.