-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HW:Week-2 types_&sequences_ #150
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The name of the function must be remove_duplicates
, not remove_dublicates
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to fix this.
Week02/sequences_canberk_akar.py
Outdated
@@ -0,0 +1,33 @@ | |||
my_list = ["a","b","c","d","e"] | |||
my_tuple = {"canberk","akar",25} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not a tuple
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reverse_dict
could not pass the tests.
Week02/sequences_canberk_akar.py
Outdated
def reverse_dict(dictionary): | ||
reversed_dict = {} | ||
for key, value in dictionary.items(): | ||
if value not in reversed_dict: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this if
line ruins the function, it is not passing the tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now it is ok.
No description provided.