I am relatively new in Python, and get this quesiton I want to ask:

There is a length of 10000 sequence made by number 0~9,

Goal: Randomly inserting 10 number sequences (already know their nunbers) in 10 different location, and record the location before insertion.

So, the function will be:

```
def insertion( insertion_sequence_list, long_sequence ):
    #modifying the long sequence
    return inserted_long_sequence and inserted_positions

```

How can I do it? The problem I am facing is whenever I make an insert 1 at random location, the later positions will change:

For example:

I have 123456789123456789 as long sequence

When I insert "999" into the 2nd position (129993456789123456789). But later, when I want to insert a sequence "888" at 3rd position, I want it to be original position, I want it to be-- 129993\**888*\*456789123456789. But in fact it will be 129\**888*\*993456789123456789 instead. I dont know how it can fix this.

Please let me know if there is any duplication posibility, I do not even know what this question belongs :\

Thanks for all comments, views, and answers!