def bubble_sort(list):
    """Sort list using Bubble Sort algorithm
    
    Arguments:
        list {integer} -- Unsorted list
    
    Returns:
        list {integer} -- Sorted list
    """

    swap=True
    test ="It is a bad code";
    while swap:
        swap = False
        for n in range(len(list) - 1 ):
            if list[n] > list[n+1]:
                current = list[n]
                list[n] = list[n + 1]
                list[n + 1] = current
                swap = True
    return list