title: Python Nested For Loop Counting Backwards
body: <p>This is probably a simple problem, but I am trying to created a nested loop that would count up from 0 to 9 in the outer loop, and in the inner loop, start from the value (or index. They are the same in this case) of the outer loop and count backwards.</p>
  
  <p>Here's an example:</p>
  
  <pre><code>i= 0
  k= 0
  
  i= 1
  k= 1
  k= 0 
  
  i= 2
  k= 2
  k= 1
  k= 0
  
  i= 3
  k= 3
  k= 2
  k= 1
  k= 0
  </code></pre>
  
  <p>I got this far:</p>
  
  <pre><code>x = range(0,10)
  for i in x:
      print 'i = ',x[i]
      for k in x:
          print 'k = ', x[i::-1]
  </code></pre>
  
  <p>Obviously, the code above doesn't do what I want it to do. For one, the second for loop doesn't start from the value of i in the outer loop and counts backwards. For another, it doesn't print a new <code>k =</code> for every new value.</p>