I need to iterate a list over a list for an API, changing a value for it and print out the results.
my_endpoint = [
'/this/is/endpoint/a',
'/this/is/endpoint/b',
'/this/is/endpoint/c',
'/this/is/endpoint/d',
'/this/is/endpoint/e',
'/this/is/endpoint/f']
change_value = ['1','185','454']
I want to change the "endpoint" section in my_endpoint using values from change_value. The results I want are below:
'/this/is/1/a',
'/this/is/1/b',
'/this/is/1/c',
'/this/is/1/d',
'/this/is/1/e',
'/this/is/1/f']
'/this/is/185/a',
'/this/is/185/b',
'/this/is/185/c',
'/this/is/185/d',
'/this/is/185/e',
'/this/is/185/f']
'/this/is/454/a',
'/this/is/454/b',
'/this/is/454/c',
'/this/is/454/d',
'/this/is/454/e',
'/this/is/454/f']