Skip to content

Commit 2ccd792

Browse files
Jack AdamJack Adam
authored andcommitted
replaced loop with *
1 parent 7ef4b41 commit 2ccd792

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cleaner.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
from helper import solo, comma
22

33
def clean(u, fn, fc):
4-
nums, numItems = [], []
54
# pre-populate arrays
6-
for _ in range(fc):
7-
nums.append({})
8-
numItems.append(0)
5+
nums = [{}] * fc
6+
numItems = [0] * fc
97

108
# extract line numbers, filenames
119
for key, value in u.items():

0 commit comments

Comments
 (0)