code: def one_point_crossover(parents):
      
      # The point that the chromosomes will be crossed at (see Ex. above)
      crossover_point = random.randint(1, len(parents[0]) - 1)
  
      return (_one_parent_crossover(parents[0], parents[1], crossover_point),
              _one_parent_crossover(parents[1], parents[0], crossover_point))
docs: Perform one point crossover on two parent chromosomes.
  
      Select a random position in the chromosome.
      Take genes to the left from one parent and the rest from the other parent.
      Ex. p1 = xxxxx, p2 = yyyyy, position = 2 (starting at 0), child = xxyyy