How to print strings from a list in sequence in Python?
<p>Suppose a list: <code>s = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J"]</code></p>

<p>I understand how to print every item in the list:</p>

<pre><code>for i in s:
    print (i)
</code></pre>

<p>which gives:</p>

<pre><code>A
B
C
D
E
F
G
H
I
J
</code></pre>

<p>But suppose I want to split the printing in terms of <code>n</code>. So if <code>n = 3</code>:</p>

<pre><code>A
B
C

D
E
F

G
H
I

J
</code></pre>

<p>These are my attempts:</p>

<pre><code>k = 0
for i in s:
    while k &lt; n:
        k += 1
        print (i)
</code></pre>

<p>and</p>

<pre><code>k = 0
while k &lt; n:
    for i in s:
        print (i)
    k += 1
</code></pre>

<p>I understand that my attempts are way off, but I can't seem to get it.
I know you can create sub-lists in terms of <code>n</code> and solve it that way, but is there a way you can do this otherwise?</p>