<garvit244>26_1.py
def removeDuplicates( nums):
    if not nums:
        return 0
        
    index_i = 0
    
    for index_j in range(1, len(nums)):
        if nums[index_i] != nums[index_j]:
            index_i += 1
            nums[index_i] = nums[index_j]
    
    return index_i + 1
def sample_funcname ( var_0 ) :
    if not var_0 :
        return 0
    var_2 = 0
    for var_6 in range ( 1 , len ( var_0 ) ) :
        if var_0 [ var_2 ] != var_0 [ var_6 ] :
            var_2 += 1
            var_0 [ var_2 ] = var_0 [ var_6 ]
    return var_2 + 1
