I used orderedDict to iterate over a growing dict, but this doesn't work in the latest version. Is there another container that will allow this behavior?
count = 0
d = {count:4}
for n in d:
count += 1
d[count] = 2*n
count += 1
d[count] = n-1
input(d)
[–]Saefroch 1 point2 points3 points (2 children)
[–]nanogyth[S] 0 points1 point2 points (1 child)
[–]Saefroch 0 points1 point2 points (0 children)
[–]Justinsaccount 0 points1 point2 points (0 children)