Display Python 2D list without commas, brackets, etc
<p>I want to display a 2D list without brackets, commas, or any stuffs. I printed the content of the list using the following code: </p>

<pre><code>print(ncA_string[a][0],ncA_string[a][1],ncA_string[a][2],ncA_string[a][3]) 
</code></pre>

<p>Unfortunately, however, it is showing the commas, and brackets. 
<a href="http://i.stack.imgur.com/bVV1s.png" rel="nofollow">Here's the picture of the output</a></p>

<p>I wanna display it like this: <code>((((((ab)c)d)e)</code></p>

<p>I'm new to using python and I've tried using the join map but i couldn't understand it yet. </p>

<p>Can anyone teach me how to?? </p>

<p>Thank you so much :))</p>

<p>You need to flatten <code>ncA_string[a]</code> first. Try to use <code>flatten</code> function from this answer <a href="http://stackoverflow.com/a/12472461/1112457">http://stackoverflow.com/a/12472461/1112457</a> . Then you can unpack the flattened list as arguments to the <code>print</code> function:</p>

<pre><code>print(*flatten(ncA_string[a]))
</code></pre>

<p>or if you want to print it without spaces:</p>

<pre><code>print(''.join(flatten(ncA_string[a])))
</code></pre>

python list