title: Check if list is Ascending OR Descending (using FOR)
body: <p>So I have been set a task in my college where I'm suppose to check whether a list is in fact sorted (either ascending or descending). But I MUST use 'for'. (We just recently learned about for and lists and we must practice it)</p>
  
  <p>This is what I have so far, I am able to confirm if a list is descending, but not descending OR ascending:</p>
  
  <pre><code>A=[10,9,8,3,1,0]
  
  def order(A):
      for i in range(len(A) - 1): 
          if ((A[i]&gt;A[i+1])) :
              return False
      return True
  </code></pre>