title: How to print values and keys into two columns with appropriate space between them?
body: <p>I have a dictionary that contains keys as a words and values as a numbers.</p>
  
  <pre><code>d = dict(bag.items())
  </code></pre>
  
  <p>How can I print keys and values into two columns, where the second column has the width of the longest key and all values are printed by right side?</p>
  
  <pre><code> 10     potatoes
    8       tomato
    5        onion
    3        plate
    2          ham
    1         meat
  </code></pre>
  
  <p>I tried with this:</p>
  
  <pre><code>for k, v in bag.items():
      print(v, k)
  </code></pre>
  
  <p>But I have to find a way to set values by right side, so make appropiate spaces between keys and values.</p>