Hey this might be a simple question, but i have been stumped on it for awhile =/
I have a string A:
A = ('A:0.1,B:0.2,(C:0.3,D:0.4)E:0.5')
And a corresponding list B, that displays the exact position of each value inside the inner parenthesis of the string A:
B = [12 13 14 15 16 17 18 19 20 21 22 23]
I want to make a new list, list C that prints the values inside the parenthesis of String A, which is defined by the numbers in list B.
Thanks for the help!
Edit:
My goal is to create a list that just prints what is inside the inner parenthesis, something like this:
C = ('C:0.3,D:0.4')
I will then split at the comma, and input the corresponding 2 strings into another function i have defined, but right now, i just need list C
EDIT: