Good day!
I am building an empty list by appending list from an old list. The code goes like this
fkConChildren = fkChildren[0]
fkConChildren += fkChildren[int((len(fkChildren) / 2))]
fkConChildren += fkChildren[-1]
However, when I execute print (fkConChildren)
It results as
spine01_FK_conspine04_FK_conspine07_FK_con
I think what I need is something like this (with comma and quotation marks)
["spine01_FK_con","spine04_FK_con","spine07_FK_con"]
The reason is I get an error when I iterate over the list saying
# ValueError: No object matches name: i #
Is there a way around this?
Thank you for looking at the problem