Updating the 2 nd pointer
else : NEW_LINE INDENT arr [ st ] = arr [ i ] ; NEW_LINE st += 1 ; NEW_LINE DEDENT print ( " { " , end = " " ) NEW_LINE for i in range ( st ) : NEW_LINE print ( arr [ i ] , end = " " ) ; NEW_LINE if ( i != st - 1 ) : NEW_LINE INDENT print ( " , ▁ " , end = " " ) ; NEW_LINE DEDENT print ( " } " , end = " " ) ; NEW_LINE