recursive-datastructures

How do I make this function automatic, it clearly has a pattern

How do I make this function automatic, it clearly has a pattern Question: def populate_kids(self, arr, used_Indices): for a in self.children: a.get_all_jumps(arr, used_Indices) for a in self.children: for b in a.children: b.get_all_jumps(arr, used_Indices) for a in self.children: for b in a.children: for c in b.children: c.get_all_jumps(arr, used_Indices) for a in self.children: for b in a.children: …

Total answers: 2

What does Python mean by printing "[…]" for an object reference?

What does Python mean by printing "[…]" for an object reference? Question: I’m printing a value of a what I thought was a list, but the output that I get is: […] What does this represent? How do I test for it? I’ve tried: myVar.__repr__() != ‘[…]’ and myVar.__repr_() != Ellipsis but no dice… Here’s …

Total answers: 4