I am working backwards on my current task. I have data formatted as:
qn1 = (["123 + 12", "234 + 23"], True)
I need to read the strings of equations and parse the individual words. My problem is that I cannot split the strings in the list, because the list is in a tuple.
My desired output would be:
My search so far took me to;
This other s/flow question; but that is not what am looking for
Please, do not solve the whole problem for me. I like the challenge, (and it is part of my freecodecamp exam)
I just need some pointers to get unstuck.
I have found that my question is different from the question How can I split and parse a string in Python? in that I am not just splitting a tuple, I am splitting a list inside a tuple, (to further split the string inside at spaces so that i can select the numbers and "+" sign inside to arrange them.)