python program to sort numbers from smallest to biggest
<p>I need to make it so that the user inputs the numbers from smallest to biggest; and then the program compares the one that the user had input with the one that it has worked out, and says whether it is right or wrong. </p>

<p>This is what I tried:</p>

<pre><code>import random

def main():
    i = random.randint(1,12)
    print i
    k = random.randint(1,12)
    print k
    l = random.randint(1,12)
    print l
    m = random.randint(1,12)
    print m
    n = random.randint(1,12)
    print n

    a=[i,k,l,m,n]
    b=int(input('order from smallest to biggest:'))


    a.sort()
    length = len(a)

    count = 0

    while (count &lt; length):
       if (a[count]==b[count]):
           print "true"
       else:
           print "false"

       count = count + 1

main()
</code></pre>
