Skip to content

Make selection sort pythonic way #5

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

Merged

Conversation

SergeyTsaplin
Copy link
Contributor

Make selection sort algorithm more pythonic.
In short:

  • PEP8
  • Add 2.x and 3.x compatibility
  • Swap pythonic way
  • Sorting function is testable now
  • Add docstrings with doctests
  • Do not print in functions or methods

@SergeyTsaplin SergeyTsaplin mentioned this pull request Jul 29, 2016
@dynamitechetan dynamitechetan merged commit 4c2c3c5 into TheAlgorithms:master Jul 29, 2016
@SergeyTsaplin SergeyTsaplin deleted the selection-sort-python-way branch August 1, 2016 08:33
sohamsshah added a commit to sohamsshah/Python that referenced this pull request Oct 2, 2020
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