(Lists)
| 1 | def bubble_sort(Lists): |
| 2 | for i in range(len(Lists)): |
| 3 | for j in range(len(Lists) - 1): |
| 4 | # We check whether the adjecent number is greater or not |
| 5 | if Lists[j] > Lists[j + 1]: |
| 6 | Lists[j], Lists[j + 1] = Lists[j + 1], Lists[j] |
| 7 | |
| 8 | |
| 9 | # Lets the user enter values of an array and verify by himself/herself |