Skip to content

Commit 64a9c04

Browse files
authored
Merge pull request #14 from MustafaErenTugcu/patch-2
Create sequences_mustafa_eren_tugcu.py
2 parents 845c17a + c3ec316 commit 64a9c04

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
my_list = ["Bursa", 16, True, 50+10j]
2+
my_tuple = (1,5,1)
3+
my_set = {"CS", "Java" , 53}
4+
my_dict = {
5+
"name": "JunEscobar",
6+
"education": "Master Degree",
7+
"birth_year": 2001
8+
}
9+
def remove_duplicates(my_list):
10+
return list(set(my_list))
11+
12+
def list_counts(list):
13+
counts = {}
14+
for element in list:
15+
if element in counts:
16+
counts[element] += 1
17+
else :
18+
counts[element] = 1
19+
return counts
20+
21+
22+
def reverse_dict(dictionary):
23+
reverse_dict = {}
24+
for key, value in dictionary.items():
25+
reverse_dict[value] = key
26+
return reverse_dict

0 commit comments

Comments
 (0)