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

Added a new Example: Sets discriminating values? #97

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

Conversation

Vibhu-Agarwal
Copy link
Contributor

Section: Appearences are deceptive!
(Open to any recommendations to add it to another section)

Link (not yet added in the table of contents): Sets discriminating values?

Concept: A set object in python never sorts its values by itself in any specific order.

The example illustrates that somehow an odd value is left off from being sorted by set.
The explanation clarifies that indeed neither of any values are being sorted.

Every sample is tested on 3.6.6 interactive interpreter and they should work for all the Python versions

@nifadyev
Copy link
Contributor

Hey @satwikkansal , this snippet is just a demo of standard Python behavior - sets are indeed unsorted. I guess this PR should be closed as not relevant

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.

2 participants