#!/usr/bin/env python
# -*- coding: utf-8 -*-

import random

random_items = [random.randint(-50,100) for c in range(20)]

def bubble_sort(items):
    for i in range(len(items)):
        for j in range(len(items)-1-i):
            if items[j] > items[j+1]:
                items[j], items[j+1] = items[j+1], items[j]

print("Before: ", random_items)
bubble_sort(random_items)
print("After: ", random_items)
