I want to replace a sub-list from list a, with another sub-list. Something like this:
a=[1,3,5,10,13]
Lets say I want to take a sublist like:
a_sub=[3,5,10]
and replace it with
b_sub=[9,7]
so the final result will be
print(a)
>>> [1,9,7,13]
Any suggestions?
Hope that helps