Bubble sort in python
Bubble sort is one of the easiest sorting algorithms. Bubble sort in python uses the compare and swap technique while sorting. two adjacent elements comprising of a list are first checked and then swapped.
In case the adjacent elements are in the incorrect order then the process keeps on repeating until a fully sorted list is obtained. Each pass that goes through the list will place the next largest element value in its proper place.
Click here to example program: https://pradtutorials.com/bubble-sort-in-python/