title: python mysql update function from tuple issue, I need your help again
body: <p>I would like to update several 10th of entries in my database. 
  My idea is as follows, unfortunately, I get the following error.</p>
  
  <p>I tried to convert to a string, but it does not work.</p>
  
  <p>Any idea?</p>
  
  <p>TypeError: must be string or read-only buffer, not tuple</p>
  
  <pre><code>lookup={
  'Gigi':'Gigi Hofleitner',
  'Horst':'Horst Sergio'
  }
  
  for i in lookup:
      sql="UPDATE namen SET Name = '%s' WHERE `Name` = '%s'",((lookup[i]),i)
      cursor.execute(sql)
      connection.commit()
  </code></pre>