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.
cursor1 = db.cursor()
cursor1.execute("select djname from jerryins_djleaderboard.leaderboard where djname = %s", dj)
result = cursor1.fetchall()
print result
It prints out like this:
(('cutecrazygirl88\r\n',)
However I want it to come out as cutecrazygirl88 as it is in the database. Any help would be appreciated. Thank you in advance!