title: Why are there brackets around the response from database?
body: <p>I was trying to understand the different values that we can get from database
  '''</p>
  <pre><code>        tmppass = db.execute(&quot;SELECT * from users WHERE username=:username&quot;, {&quot;username&quot;: session['user_id']}).fetchone()
          tmppass_1 = db.execute(&quot;SELECT password from users WHERE username=:username&quot;, {&quot;username&quot;: session['user_id']}).fetchone()
          old_password = request.form.get('old_password')
          newpass_1 = request.form.get('new_password_1')
          newpass_2 = request.form.get('new_password_2')
          hashOfNewPass = str(pbkdf2_sha256.hash(newpass_1))
          oldPassHash = pbkdf2_sha256.hash(old_password)
          print(tmppass['password'])
          print(tmppass_1)
  </code></pre>
  <p>'''</p>
  <p>I am getting different results from the database for tmppass and tmppass_1</p>
  <pre><code>tmppass_1 = ('$pbkdf2-sha256$29000$bs1Z6z0HYOw9R4hR6t37nw$.ZtoRLUsZCYmkbRVNTiZt1uLLQwuJ.iyxrNcHg43SYA',)
  
  tmppass['password'] = $pbkdf2-sha256$29000$bs1Z6z0HYOw9R4hR6t37nw$.ZtoRLUsZCYmkbRVNTiZt1uLLQwuJ.iyxrNcHg43SYA
  </code></pre>
  <p>[tmppass_1 which only gets the hash from the database is printing the string with the brackets<a href="https://i.stack.imgur.com/wNOXg.png" rel="nofollow noreferrer">][1]</a></p>