title: Python: pylightxl: if the user input match the text in the row A of excel, replace it with the text in B and print it out
body: <p>I want to make a Spanish translator in python, so I create it with the dictionary.</p>
  <pre class="lang-py prettyprint-override"><code>translate = input(&quot;input: &quot;)
  
  translate_dictionary = {
    &quot;Hello&quot;: &quot;Hola&quot;,
    &quot;Goodbye&quot;: &quot;adiós&quot;
  }
  for english, spanish in translate_dictionary.items():
    translate = translate.replace(english, spanish)
  print(translate)
  </code></pre>
  <p>I want to rewrite this by using pylightxl, and link it to the excel spreadsheet, if the user input match the text in the row A of excel, replace it with the text in B and print it out, this is my excel spreadsheet content:</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>A</th>
  <th>B</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>Hello</td>
  <td>Hola</td>
  </tr>
  <tr>
  <td>Goodbye</td>
  <td>adiós</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>And this is the code I wrote, I want to make the excel file a dictionary, row A is the key and row B is the value, and I have totally no idea how can i do it:</p>
  <pre class="lang-py prettyprint-override"><code>import pylightxl as xl
  
  translate = input(&quot;input: &quot;)
  
  db = xl.readxl(fn='translate_library.xlsx')
   
  for english, spanish in str(db):
      translate = translate.replace(db.ws(ws='Sheet1').address(address='A1'), db.ws(ws='Sheet1').address(address='B1'))
  
  print(translate)
  </code></pre>