diff --git a/doc/code/tutorials/part_1/1_where_to_start.py b/doc/code/tutorials/part_1/1_where_to_start.py index 7b51cdafb..1606e3e8e 100644 --- a/doc/code/tutorials/part_1/1_where_to_start.py +++ b/doc/code/tutorials/part_1/1_where_to_start.py @@ -38,7 +38,7 @@ def main(): # Select the next generation individuals offspring = toolbox.select(pop, len(pop)) # Clone the selected individuals - offspring = map(toolbox.clone, offspring) + offspring = list(map(toolbox.clone, offspring)) # Apply crossover and mutation on the offspring for child1, child2 in zip(offspring[::2], offspring[1::2]):