title: Possible to output dir() in python as a vertical list?
body: <p>I'm using the <code>dir(variable)</code> command in Python to get all the attributes and methods of <code>variable</code>. </p>
  
  <p>The output looks something like this: <code>['attribute', 'attribute', 'method', 'attribute', 'method', etc.]</code>; i.e., the output is horizontal so it's hard to peruse.</p>
  
  <p>Is there a way to make <code>dir()</code> output a vertical list, like this:</p>
  
  <pre><code>'attribute', 
  'attribute', 
  'method', 
  'attribute', 
  'method', 
  etc.
  </code></pre>