We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4164dcd commit f248c9eCopy full SHA for f248c9e
Week02/sequences_zeynep_soyarslan.py
@@ -12,7 +12,6 @@ def remove_duplicates(my_list):
12
if i not in new_list:
13
new_list.append(i)
14
return new_list
15
-print(remove_duplicates(my_list))
16
17
def list_counts(my_list):
18
counts = dict()
@@ -22,12 +21,10 @@ def list_counts(my_list):
22
21
else:
23
counts[j] = 1
24
return counts
25
-print(list_counts(my_list))
26
27
def reverse_dict(my_dict):
28
reversed_dict = {}
29
for key, value in my_dict.items():
30
reversed_dict[value] = key
31
return reversed_dict
32
-print(reverse_dict(my_dict))
33
0 commit comments