1

Am able to read from API and write to a list but this is in this format: ('AAA','FF','LL') ('BBB','SS','DD')

Can how can I iterate nested to get the information from first row as AAA, FF,LL individually.

Thank you. AJ

1 Answers1

0

Python - Parsing JSON formatted text file with regex

This answer will help you to process your input data. I'd suggest the following code structure. I'll provide some pseudo-code:

list1
for item in APIInput:
    //Find each element in item by dividing the string on commas, remove ( and '
    //take each element and put it into another list (list2)
    //Add that list (list2) to list1

RegEx is very powerful for this type of work.