If next element is also same , then there are multiple occurrences , so print it
if ( it != v [ n - 1 ] and v [ v . index ( it ) + 1 ] == arr [ i ] ) : NEW_LINE INDENT print ( arr [ i ] , end = " ▁ " ) NEW_LINE DEDENT