def Delete(a,idx): b = a del b[idx] print('After del (b) ',b) a = list(range(10)) print(type(a)) print('Before sort ',a) Delete(a,1) print('After sort ',a)