Python convert tuple to string

I have a tuple of characters like such:

    ('a', 'b', 'c', 'd', 'g', 'x', 'r', 'e')

How do I convert it to a string so that it is like:


Use str.join:

    >>> tup = ('a', 'b', 'c', 'd', 'g', 'x', 'r', 'e')
    >>> ''.join(tup)
    >>> help(str.join)
    Help on method_descriptor:

        S.join(iterable) -> str

        Return a string which is the concatenation of the strings in the
        iterable.  The separator between elements is S.



Back to homepage or read more recommendations: