Which is the most pythonic way to convert a list of tuples to string?
I have:
[(1,2), (3,4)]
and I want:
\"(1,2), (
I think this is pretty neat:
>>> l = [(1,2), (3,4)] >>> "".join(str(l)).strip('[]') '(1,2), (3,4)'
Try it, it worked like a charm for me.