title: Printing kwargs in Python 3
body: <p>I'm relatively new to Python and have recently come across kwargs. I think I understand them and how they work. However, when I try to print the key and the value using a for loop, it brings up a ValueError: Too many values to unpack.</p>
  
  <pre><code>def shop(**kwargs):
      sh = 1
      print ("Welcome to the shop!")
      for i, v in kwargs:
          print ("    ", i, ": ", v)
      while sh == 1:
          b = input ("What would you like to buy?").lower()
          if b == i:
              Player.gold -= v
              Player.inv_plus(i)
          elif b == "exit":
              sh = 0
  
  shop(Stone=5, Potion=10)
  </code></pre>
  
  <p>Player.gold is just how much gold the player has, and Player.inv_plus(i) adds 1 to the item in the player's inventory. Though, that isn't important to the problem I'm having.</p>
  
  <p>If I print kwargs without the for loop, it works fine. But that's not the format I want when printing it.</p>
  
  <p>If someone could explain what I'm doing wrong I would be very grateful, as I am very confused as to why it isn't working.</p>