#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Feb 28 15:34:50 2021

@author: rakesh
"""

def bubble(a):
    n = len(a)
    
    for i in range(n):
        for j in range(0,n-i-1):
            if(a[j]>a[j+1]):
                tmp = a[j]
                a[j] = a[j+1]
                a[j+1] = tmp
                
a = [5,1,4,2,8]
bubble(a)

for i in a:
    print(i)
14446ccdc3174720dcc5d8efa53c11c208a9217f
<mask token>

<mask token>


def bubble(a):
    n = len(a)
    for i in range(n):
        for j in range(0, n - i - 1):
            if a[j] > a[j + 1]:
                tmp = a[j]
                a[j] = a[j + 1]
                a[j + 1] = tmp


<mask token>

<mask token>


def bubble(a):
    n = len(a)
    for i in range(n):
        for j in range(0, n - i - 1):
            if a[j] > a[j + 1]:
                tmp = a[j]
                a[j] = a[j + 1]
                a[j + 1] = tmp


<mask token>
bubble(a)
for i in a:
    print(i)

<mask token>


def bubble(a):
    n = len(a)
    for i in range(n):
        for j in range(0, n - i - 1):
            if a[j] > a[j + 1]:
                tmp = a[j]
                a[j] = a[j + 1]
                a[j + 1] = tmp


a = [5, 1, 4, 2, 8]
bubble(a)
for i in a:
    print(i)

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Feb 28 15:34:50 2021

@author: rakesh
"""

def bubble(a):
    n = len(a)
    
    for i in range(n):
        for j in range(0,n-i-1):
            if(a[j]>a[j+1]):
                tmp = a[j]
                a[j] = a[j+1]
                a[j+1] = tmp
                
a = [5,1,4,2,8]
bubble(a)

for i in a:
    print(i)