R E F A C T O R
e = ['']
g = 4
for count2 in range(2):
f = 'ababa'[count2 : g]
g = g + 1
c = 1
d = 1
for count in range(4):
a = f[count - 1]
b = e[d - 1].find(a) + 1
if b == 0:
e[d - 1] = str(e[d - 1]) + str(a)
if d == len(e):
e.append([])
e[d].append(len(e) + 1)
e.append('')
d = len(e)
else:
d = e[d][b - 1]
print(e)
------------------------------------------
Artificial General Intelligence List: AGI
Permalink:
https://agi.topicbox.com/groups/agi/T11f5dc3052b454b3-Md84746a48fcc407826a13b7d
Delivery options: https://agi.topicbox.com/groups/agi/subscription