Loop character A/B alternately
<p>How can I print A/B character alternately in python loop?</p>

<p>What I expect in result:</p>

<pre><code>oneA
twoB
threeA
fourB
...
</code></pre>

<p>I think this will help -></p>

<pre><code>a1 = ['A','B']
a2 = ['one','two','three','four']
for i in range(len(a2)):
    print a2[i]+a1[i%2]
</code></pre>

python loops for-loop