Checking whether current element is not equal to it 's previous element
if arr1 [ i ] != arr1 [ i - 1 ] : NEW_LINE INDENT print ( arr1 [ i ] , end = " ▁ " ) NEW_LINE newtable [ arr1 [ i ] ] += 1 NEW_LINE DEDENT