Alternatively place the elements into the two arrays
if ( c % 2 == 0 ) : NEW_LINE INDENT A . append ( arr [ i ] ) NEW_LINE DEDENT else : NEW_LINE INDENT B . append ( arr [ i ] ) NEW_LINE DEDENT c += 1 NEW_LINE