import sqlite3 as litecon = lite.connect('csdt.db')with con: cur = con.cursor() cur.execute("CREATE TABLE Pen(id INT, name TEXT, price INT)") cur.execute("INSERT INTO Pen VALUES(1,'Agni gel',52)")
cur.execute("INSERT INTO Pen VALUES(2,'Win',20)")
cur.execute("SELECT * FROM cars")
rows = cur.fetchall() for row in rows: print(row)