Python da olustur.py dosyası ile oluşturduğum ve bilgi aktardığım .db dosyasına kontrol.py dosyamın kontrol etmesini nasıl sağlayabilirim?
olustur.py
import sqlite3
con = sqlite3.connect("bilgi.db")
cursor = con.cursor()
cursor.execute("CREATE TABLE IF NOT EXISTS bilgi(parola STR, parola2 STR)")
con.commit()
while True:
a = str(input("parola1: "))
b = str(input("parola2: "))
cursor.execute("DELETE FROM bilgi")
cursor.execute("INSERT INTO bilgi VALUES(?,?)",(a,b))
con.commit()