To All Pythonist..

I have small SQLITE db.. for User Table

'SELECT loginUser from User';
sql = cursor.fetchall()
listSQL = sql[:]

for x in listSQL:
     print x   

     listSQL SELECT Data Produce:

I want to match the list of user with a string input:

example if the value of the current user = ('user1') it should match on
the registered user in the current table.

Use "SELECT" and "WHERE" to only return record(s) that match from the SQLite database See "Named Placeholders"