Skip to content

Instantly share code, notes, and snippets.

@lbj96347
Created May 13, 2012 11:54
Show Gist options
  • Save lbj96347/2688030 to your computer and use it in GitHub Desktop.
Save lbj96347/2688030 to your computer and use it in GitHub Desktop.
python bubble sort
#python bubble test
def make_array():
define_array = [ i for i in range(0, 5000) ]
for x in range(0, 5000):
import random
num = random.randint(0,5000)
define_array[x] = num
#print define_array[x]
define_array.sort()
print define_array
make_array()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment