Skip to content

Commit e495c87

Browse files
authored
Week 03 hw
1 parent b776e9f commit e495c87

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎Week03/sequences_ilyas_bugra_filoglu.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ def remove_duplicates(seq: list) -> list:
55
production.append(item)
66
return production
77

8-
def list_count(seq: list) -> dict:
9-
count = {}
8+
def list_counts(seq: list) -> dict:
9+
counts = {}
1010
for item in seq:
11-
count[item] = count.get(item, 0) + 1
12-
return count
11+
counts[item] = counts.get(item, 0) + 1
12+
return counts
1313

1414
def reverse_dict(d: dict) -> dict:
1515
return {value: key for key, value in d.items()}

0 commit comments

Comments
 (0)