Skip to content

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