code: def group_primers(self, my_list):
          
          new_list = []
          n = 2
          for i in range(0, len(my_list), n):
              grouped_primers = my_list[i:i + n]
              forward_primer = grouped_primers[0].split(" ")
              reverse_primer = grouped_primers[1].split(" ")
              formatted_primers = ">F_{0}\n{1}".format(forward_primer[1], forward_primer[0])
              formatted_primers += "\n>R_{0}\n{1}".format(reverse_primer[1], reverse_primer[0])
              new_list.append(formatted_primers)
          return new_list
docs: Group elements in list by certain number 'n