Skip to content

Commit 637edd3

Browse files
authored
style: use iterable unpacking per ruff RUF005
1 parent 7e0a4fd commit 637edd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dynamic_programming/needleman_wunsch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ def print_score_matrix(score_matrix: list, sequence_1: str, sequence_2: str) ->
491491
print(" " + "".join(header_labels))
492492

493493
# One data row per border label + each character of sequence_2
494-
row_labels = ["-"] + list(sequence_2)
494+
row_labels = ["-", *list(sequence_2)]
495495

496496
for row_index, row_label in enumerate(row_labels):
497497
row_cells = [f"{cell:>{col_width}}" for cell in score_matrix[row_index]]

0 commit comments

Comments
 (0)