import sqlite3
username=input(print("Username?"))
password=input(print("Password?"))
connection= sqlite3.connect("Logininfo.db")
c = connection.cursor()
IDuser=c.execute('SELECT Username, Password FROM LoginInfo WHERE Username= ? AND Password= ?', (username,password)).fetchone()
print(IDuser)
The data that should be returned from this code is "Hello1" and "Password1" (Without the quotemarks). Instead it outputs "('Hello1', 'Password1')".
A few questions, why does it do this?
How can I retrieve this data without the brackets and quotemarks i.e "('Hello1'," would become "Hello1"
The code also prints out "None" before asking for both the username and password why does it do this and how can I fix it?