I have a list as follows:
list_name=["node1","node2","node3",...,"nodeN"]
I have a dictionary as follows:
dictionary_name:{
"node1":{
"node2":true}
}
}
I would like to set node2 to equal the following:
"node2"={"node3":{"node4":{...."nodeN"=true}...}}}
I have been unsuccessfully lost in for loops for a while now.
Has anyone got any suggestions?
Thanks in advance.