title: Convert columns of an Excel into dictionary in python
body: <p>I have three columns in my excel file, i have to convert all the rows of the first two columns into a dictionary using xlrd.</p>
  
  <p>Expected Output: </p>
  
  <pre><code>{'Sam' : 'Tester', 'John' : 'Developer', 'Fin' : 'Tester'}
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/Kqkgr.png" alt="screenshot of Excel file"></p>
  
  <pre><code>for i in range(1, worksheet.nrows):
      row = worksheet.row_values(i)
      variable = row[0] + row[1]
      print(" {0} {1}".format(row[0],format(row[1])))
      print(variable)
  </code></pre>
  
  <p>The code prints the first two columns. How to convert to dictionary type?</p>