Determine if a list is in descending order
<p>I am trying to write a function that will test whether or not a list is in decending order.  This is what I have so far, but it doesn't seem to be working for all lists.  </p>

<p>I used the list <code>[9,8,5,1,4,3,2]</code> and it returned <code>'true'</code>. </p>

<p>I can't seem to figure out where my mistake is. </p>

<pre><code>def ordertest(A):
    n = len(A)
    for i in range(n):
        if A[i] &gt;= A[i+1]:
            return 'true'
        else:
            return 'false'
</code></pre>
