We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9928699 commit 61d9d71Copy full SHA for 61d9d71
1 file changed
python-flatten-list/flatten.py
@@ -4,17 +4,17 @@
4
5
6
def flatten_extend(matrix):
7
- flat = []
+ flat_list = []
8
for row in matrix:
9
- flat.extend(row)
10
- return flat
+ flat_list.extend(row)
+ return flat_list
11
12
13
def flatten_concatenation(matrix):
14
15
16
- flat += row
17
+ flat_list += row
18
19
20
def flatten_comprehension(matrix):
0 commit comments