import sqlite3 conn = sqlite3.connect('valami.db') c = conn.cursor() t=('Szolnok',) sql = 'select * from dolgozok' c.execute(sql) print('\n'.join(map(str, c.fetchall()))) conn.close()