title: python for-loop with 2 counters
body: <p>I'd like to create a single for loop using 2 variables, instead of a for loop and an external variable.</p>
  
  <p>Is there a way to do something unpacking tuples with range? </p>
  
  <p>Here is what I have:</p>
  
  <pre><code>space = height
  for h in range(height):
      # code using both h &amp; space
  </code></pre>
  
  <p>Here is the code I'm trying to improve:</p>
  
  <pre><code># Get positive integer between 1 - 8
  while True:
      height = int(input("Height: "))
      if height &gt; 0 and height &lt; 9:
          break
  
  space = height  # Control space count
  
  # Build the pyramid
  for h in range(height):
      print(" " * (space - 1),"#" * (h + 1), end="")
      print(" ", end="")
      print( "#" * (h + 1), " " * (space - 1), end="")
      space -= 1
  
      print()  # Get prompt on \n
  </code></pre>