Skip to content
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

my first pull request #9

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open

my first pull request #9

wants to merge 17 commits into from

Conversation

W4ngatang
Copy link
Collaborator

No description provided.

@W4ngatang
Copy link
Collaborator Author

done!

s = set()
words = open(dictionary_name, "rb")
for word in words:
s.add(word.strip())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can also use set comprehensions:

return {word.strip() for word in open(dictionary_name, "rb")}

@kennyyu
Copy link
Collaborator

kennyyu commented Nov 12, 2013

try finishing the rest of the exercises!

@W4ngatang
Copy link
Collaborator Author

DONEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants