Skip to content

Commit 1417b7b

Browse files
authored
Update sequences_farid_mammadov.py
## Describe your changes ## Checklist - [x] I have read [CONTRIBUTING]. - [x] I have performed a self-review of my own code. - [x] I have run the code locally and it works as explained. - [x] I have commented my code, particularly in hard-to-understand areas ## Screenshots (if appropriate)
1 parent c2d2120 commit 1417b7b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Week02/sequences_farid_mammadov.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@
55
"name": "farid",
66
"surname": "mammadov"
77
}
8+
89
def remove_duplicates(input_list):
910
return list(set(input_list))
10-
def list_counts(input_list):
1111

12+
def list_counts(input_list):
1213
counts = {}
1314
for item in input_list:
1415
counts[item] = counts.get(item, 0) + 1
1516
return counts
17+
1618
def reverse_dict(input_dict):
1719
return {value: key for key, value in input_dict.items()
1820
}

0 commit comments

Comments
 (0)