This commit is contained in:
Dmitry Fedotov
2021-12-05 22:15:42 +03:00
parent 13cc8f8311
commit 605a78a635
4 changed files with 25 additions and 2 deletions

View File

@@ -8,7 +8,6 @@ def power_consumption(l: list):
def calculate_common(l: list):
counter = [0 for _ in range(len(l[0]))]
for line in l:
line = line.rstrip('\n')
for i in range(len(line)):
if line[i] == '1':
counter[i] += 1