excel['A1'] = "Seq1" excel['B1'] = "Seq2" excel['C1'] = "Skor" scores = [] for i in range(start, stop): for j in range(i + 1, num_lines): score = Needleman.calculate(line_list[i], line_list[j], gap, match, mis_match) score_row = ['s' + str(i), 's' + str(j), str(score)] print(score_row) excel.append(score_row) kitap.save(excel_name) kitap.close() line_list = Fasta.MyFasta('deneme').get_list() line_list_arr = [line_list.copy() for x in range(3)] match = 3.621354295 mis_match = -2.451795405 gap = -1.832482334 # num_lines = len(line_list) # num_lines = 50 num_lines = 20 # Processes initialization procs = [] p1 = Process(target=isim_bulamadim, args=(0, 3, line_list_arr[0], 'scores_val0.xlsx')) p2 = Process(target=isim_bulamadim, args=(4, 11, line_list_arr[1], 'scores_val1.xlsx'))