How do I insert the value of a string variable within a string which is not going into Python's print
method but going into a list of strings?
#!/usr/bin/env python3
some_var="/some/path/to/somewhere"
my_list_of_paths = ['A=/a/b/c', 'B=/b/c/d', 'C=some_var']
print(my_list_of_paths)
print(my_list_of_paths)
should print ['A=/a/b/c', 'B=/b/c/d', 'C=/some/path/to/somewhere']
but it prints ['A=/a/b/c', 'B=/b/c/d', 'C=some_var']
which is not the intention here.