code: def uniform_crossover(parents):
      
      chromosome_length = len(parents[0])
  
      children = [[], []]
  
      for i in range(chromosome_length):
          selected_parent = random.randint(0, 1)
  
          # Take from the selected parent, and add it to child 1
          # Take from the other parent, and add it to child 2
          children[0].append(parents[selected_parent][i])
          children[1].append(parents[1 - selected_parent][i])
  
      return children
docs: Perform uniform crossover on two parent chromosomes.
  
      Randomly take genes from one parent or the other.
      Ex. p1 = xxxxx, p2 = yyyyy, child = xyxxy