How do you make it so that a function returns a tuple divided in multiple lines?
<p>Basically I have a tuple which has 5 tuples in it. How do I make it so that my function returns that same tuple in multiple lines instead of one?</p>

<p>Example:</p>

<pre><code>&gt;&gt;&gt; hello = (('1','2'),('3','4'),('5','6'),('7','8'),('9','10'))
&gt;&gt;&gt; function(hello)
    (('1','2'),
     ('3','4'),
     ('5','6'),
     ('7','8'),
     ('9','10'))
</code></pre>

<p>Thank you</p>

<p>Hereâs the quick and dirty way:</p>

<pre><code>def formatted_tuple(x):
    st = '%s' % (x,)
    return st.replace('),', '),\n')

# now you can call formatted_tuple(hello)
</code></pre>

python tuples