This is probably basic, but I can't find a solution. I have a string, e.g.,
s = 'a,b,c,d'
I'd like to convert the commas to tabs. But using .replace, e.g.,
s.replace(',', '\t')
gives me
>>> s.replace(',', '\t')
'a\tb\tc\td'
I also tried converting to a list and then adding the tabs with a .join, e.g.,
'\t'.join(s.split(','))
but that gives the same result. How can I have the tabs actually inserted as tabs?