CodePudding user response:
Easiest way will be adding enumerate
for index, j in enumerate(mylist2):
mylist.append(j)
if index >= generation:
break
CodePudding user response:
Easiest way will be adding enumerate
for index, j in enumerate(mylist2):
mylist.append(j)
if index >= generation:
break