I have the following string in python:
'this is my string (x,x,x,x)'
I want to replace each x per each number in this list:
[1,2,3,4]
So, the final output should be this:
'this is my string (1,2,3,4)'
I have tried to solve it with different approaches but I can't do it.
I don't know if there is an efficient way to do this.