---
title: "Discussion on \"Selection Sort: Explanation and Implementation in Python\" | Hashnode"
description: "Discussion on \"Selection Sort: Explanation and Implementation in Python\". Selection Sort is another sorting algorithm, so it will have the same goal as Bubble Sort, which I wrote about last week in this article. \nThe Goal of Selection Sort\nGiven an array of unsorted values, sort them so that they end up in ascending order...."
url: "https://hashnode.com/posts/selection-sort-explanation-and-implementation-in-python/62d47a512f40e31decd8dfff"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Selection Sort: Explanation and Implementation in Python](https://madelinecaples.hashnode.dev/selection-sort-explanation-and-implementation-in-python?utm_source=hashnode&utm_medium=feed)

Selection Sort is another sorting algorithm, so it will have the same goal as Bubble Sort, which I wrote about last week in this article. The Goal of Selection Sort Given an array of unsorted values, sort them so that they end up in ascending order....

Jul 17, 2022 · 4 min read · madelinecaples.hashnode.dev  
Read the article

-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#beginners-learningtocode-100daysofcode](https://hashnode.com/tag/beginners-learningtocode-100daysofcode)

## Written by

[Madeline Caples](https://hashnode.com/@madeline_pc)

@madeline\_pc

  
[View profile](https://hashnode.com/@madeline_pc)

Frontend Developer @FuegoLeads

I'm a frontend developer who likes to write about machine learning and other software engineering topics.

## Responses 1

Markdown supported · ⌘↵ to post

[Mohammed Sameeruddin](https://hashnode.com/@msameeruddin)

[Jul 19, 2022](https://hashnode.com/posts/selection-sort-explanation-and-implementation-in-python/62d47a512f40e31decd8dfff/comment/62d6a528d3af5e3713d5fdbc)

Please correct your markdown for the code.

If you use the below format, you will get properly highlighted code with respect to Python language.

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1658233667675/StWwPbRZD.png)

The result of the same is -

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1658233771304/ePE5u83Ox.png)

Currently in your code, it is very difficult to assess which is a `comment` and which is a `keyword`.

[Madeline Caples](https://hashnode.com/@madeline_pc)

[Jul 21, 2022](https://hashnode.com/posts/selection-sort-explanation-and-implementation-in-python/62d47a512f40e31decd8dfff/comment/62d6a528d3af5e3713d5fdbc#reply-62d97c45e3738c59b0b789ac)

Thanks for the tip!
