Skip to content

Commit

Permalink
Update sequences_canberk_akar.py
Browse files Browse the repository at this point in the history
  • Loading branch information
CanberkAkar authored Oct 16, 2023
1 parent d6b7d54 commit fe85c0a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Week02/sequences_canberk_akar.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ def list_counts(list):
return dictionary

def reverse_dict(dictionary):
reversed_dict = {}
for key, value in dictionary.items():
if value not in reversed_dict:
reversed_dict[value] = key
return reversed_dict


dict = {}
for item in dictionary.items():
dict[item[1]] = item[0]
return dict

0 comments on commit fe85c0a

Please sign in to comment.