I want to get the integer 5 from my database but I keep getting "[('5',)]" or "('5',)" this is my code:
import sqlite3
db = sqlite3.connect("Users.db")
cursor = db.cursor()
def get_clearance(username='CC-2225', clearance=None):
find_clearance = "SELECT clearance FROM user WHERE username = username"
cursor.execute(find_clearance)
results = cursor.fetchall()
return results
print(get_clearance())