I have made an array in python that generates 20 random numbers 50-100. I want to know how to sort the numbers in my array. I am in 8th grade and this is for my computing class. Can this even be done? My teacher mentioned some kind of sorting algorithm, but told me not to use sort(). I am using python. Thanks this is what i have so far
from random import*
array = range(20)
for i in range(20):
array[i] = randint(50, 100)
print array