I am having difficulty to append item to a list with Python.
I am trying to keep at output the same data structure as the input and for that I am using two for loops.
Error is saying that (i) is out of range, but when I output (i) I have list 0, 1, 2, 3 what is matching to indexes of the branches
I am quiet inexperienced with Python and I am really grateful for all your help
Thanks in advance