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), (
Three more :)
l = [(1,2), (3,4)] unicode(l)[1:-1] # u'(1, 2), (3, 4)' ("%s, "*len(l) % tuple(l))[:-2] # '(1, 2), (3, 4)' ", ".join(["%s"]*len(l)) % tuple(l) # '(1, 2), (3, 4)'