title: Python ValueError: too many values to unpack with dictionary
body: <p>I am currently working on a file that needs to readout excel rows. I have made to seperate files. one where i define functions and the main script. In the functions i am trying to create a dictionary, which works, but python cant unpack it into the main file. My functions are:</p>
  
  <pre><code>def ColVal( RowName , x , sheet):
    ColA = str( RowName ) + str( x )
    ColAVal = ( sheet[ColA].value )
    return ( ColA , ColAVal )
  
  def MakeDictionary(sheet):
    X = {}
    RowName = 'A'
    print( sheet.max_row )
    for x in range( 1 , sheet.max_row ):
  
      [ColA , ColAVal] = ColVal( RowName , x , sheet)
  
      X[ColA] = str( ColAVal )
  
    return X
  </code></pre>
  
  <p>sheet.max_row = 301. When i try to use the function in the main script like this:</p>
  
  <pre><code>[X] = MakeDictionary2(sheet)
  print(X)
  </code></pre>
  
  <p>It gives the error: ValueError: too many values to unpack (expected 1)</p>
  
  <p>How can i solve this?</p>
  
  <p>Best regard</p>