We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 561e5a0 commit c8e2982Copy full SHA for c8e2982
genetic_algorithm/basic_string.py
@@ -71,7 +71,7 @@ def select(
71
>>> parent_1 = ("123456", 8.0)
72
>>> population_score = [("abcdef", 4.0), ("ghijkl", 5.0), ("mnopqr", 7.0)]
73
>>> genes = list("ABCDEF")
74
- >>> child_n = int(min(parent_1[1]) + 1, 10))
+ >>> child_n = int(min(parent_1[1] + 1, 10))
75
>>> population = []
76
>>> for _ in range(child_n):
77
... parent_2 = population_score[random.randrange(len(population_score))][0]
0 commit comments