title: Python and MySQL print results
body: <p>I'm trying to teach myself Python but I've hit a brick wall. I need to get a field from MySQL however when I retrieve the data from the database it comes out odd. That's the code below I use.</p>
  
  <pre><code>cursor1 = db.cursor()
  cursor1.execute("select djname from jerryins_djleaderboard.leaderboard where djname = %s", dj)
  result = cursor1.fetchall()
  print result
  </code></pre>
  
  <p>It prints out like this:</p>
  
  <pre><code>(('cutecrazygirl88\r\n',)
  </code></pre>
  
  <p>However I want it to come out as cutecrazygirl88 as it is in the database. Any help would be appreciated. Thank you in advance! </p>