DEV Community

Cover image for How to Sort Numbers in Python without sort Function
He Codes IT
He Codes IT

Posted on

How to Sort Numbers in Python without sort Function

Today we are going out to Sort Numbers in Python without sort Function. There is a similar Kata in Codewars to Sort only odd Numbers without sort Function in Python. The link of the similar Kata (sorting only odd numbers) is given HERE
Task:
You will be given an array of numbers. You have to sort the numbers in ascending order.
Python has built in sort function which has made us lazy to think that how can we sort a list in python without using that function.

Now let’s get to the coding part to extract the Domain out of the URL.
Code is given on https://hecodesit.com/how-to-sort-numbers-in-python-without-sort-function/

Discussion (0)