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 71f5b39 commit d4c5654Copy full SHA for d4c5654
Week03/sequence_aysegul_yildiz.py
@@ -0,0 +1,20 @@
1
+def remove_duplicates(seq):
2
+ sonuc = []
3
+ for oge in seq:
4
+ if oge not in sonuc:
5
+ sonuc.append(oge)
6
+ return sonuc
7
+
8
9
+def list_counts(seq):
10
+ sayimlar = {}
11
12
+ sayimlar[oge] = sayimlar.get(oge, 0) + 1
13
+ return sayimlar
14
15
16
+def reverse_dict(d):
17
+ ters = {}
18
+ for anahtar, deger in d.items():
19
+ ters[deger] = anahtar
20
+ return ters
0 commit comments