-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Sample code for the article on set comprehension #606
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
Conversation
gahjelle
left a comment
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.
Hi @lpozo
I have a few minor comments which I think are all due to changes we did during TR :)
python-set-comprehension/colors.py
Outdated
| @@ -0,0 +1,4 @@ | |||
| colors = {"blue", "red", "green", "orange"} | |||
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.
Should we add the duplicate green for consistency?
python-set-comprehension/emails.py
Outdated
| @@ -0,0 +1,11 @@ | |||
| emails = [ | |||
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.
Should we start with a set here, like we now do in the tutorial?
python-set-comprehension/tools.py
Outdated
| print("Numpy".lower() in tools_set) | ||
| print("Numpy".lower() in tools_set) |
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.
There is a duplicate line here
gahjelle
left a comment
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.
Looks great! @lpozo
Where to put new files:
my-awesome-articleHow to merge your changes: