title: How to print out a dictionary nicely in Python?
body: <p>I've just started to learn python and I'm building a text game. I want an inventory system, but I can't seem to print out the dictionary without it looking ugly.</p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>def inventory():
      for numberofitems in len(inventory_content.keys()):
          inventory_things = list(inventory_content.keys())
          inventory_amounts = list(inventory_content.values())
          print(inventory_things[numberofitems])
  </code></pre>