title: how do i make "*" print vertically on python loops?
body: <p>I'm trying to make a horizonal and vertical list; made by inputs.
  Horizontal list is done and looks like this: </p>
  
  <pre><code>0-29 : *
  30-39 : **
  40-69 : **
  70-100 : **
  </code></pre>
  
  <p>However now I need to make the stars go from top to bottom like this: </p>
  
  <pre><code>1-10 10-20 20-30
   *     *     *
   *     *
   * 
  </code></pre>
  
  <p>But all it comes up like is :</p>
  
  <pre><code>0-29  **30-39  *40-69  ***70-100
  </code></pre>
  
  <p>I've tried different coding and this the closest I've come up with. Any tips on how to make the stars go vertically?</p>
  
  <pre><code>var = ""
  var= "0-29  "
  for x in range(cat1):
          var += '*'
  print(var, end="")
  
  var = ""
  var= "30-39  "
  for x in range(cat2):
          var += '*'
  print(var, end="")
  
  var = ""
  var= "40-69  "
  for x in range(cat3):
          var += '*'
  print(var, end="")
  
  var = ""
  var= "70-100  "
  for x in range(cat4):
          var += '*'
  print(var, end="")
  </code></pre>