Skip to content

Commit 61d9d71

Browse files
committed
DR updates, first round
1 parent 9928699 commit 61d9d71

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

python-flatten-list/flatten.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44

55

66
def flatten_extend(matrix):
7-
flat = []
7+
flat_list = []
88
for row in matrix:
9-
flat.extend(row)
10-
return flat
9+
flat_list.extend(row)
10+
return flat_list
1111

1212

1313
def flatten_concatenation(matrix):
14-
flat = []
14+
flat_list = []
1515
for row in matrix:
16-
flat += row
17-
return flat
16+
flat_list += row
17+
return flat_list
1818

1919

2020
def flatten_comprehension(matrix):

0 commit comments

Comments
 (0)