How to print results from for loop in one list : <p>Below code is for loop to print many lists</p>

<pre><code>for file in dir:

     res = p.Probability(base + i + "/" + file)
     print(i + ": " + ": " + str(res))
     print(res)
    #docum = []
    #docum.append(res)
print(docum)
</code></pre>

<p>for loop result will be:</p>

<pre><code>[['hello',123]['hi',456]]
[['hello',123]['hi',456]]
[['hello',123]['hi',456]]
[['hello',123]['hi',456]]
[['hello',123]['hi',456]]
</code></pre>

<p>but I want to print as a one list</p>

<pre><code>[['hello',123]['hi',456],['hello',123]['hi',456],['hello',123]['hi',456]]
</code></pre>

<p>how can I do that. I tried many things but still not working. I am new to python. and one more help how to separate hi and hello.
like: </p>

<pre><code>        hi       hello
        456      123
        456      123
        456      123
</code></pre>

<p>I am doing school project for my class 11th. I struck in this and I am new to coding</p>
