I am trying to create a for loop to write multiple associated variables defined by the user to a database, is there a way to do something like this?
import sqlite3 as lite
import sys
names = ( "John", "Sal", "Bill" )
ids = ( 123, 321, 231 )
con = lite.connect('test.db')
cur = con.cursor()
**for x in names and y in id:**
cur.execute("INSERT INTO People(Name, ID) VALUES('%s', %d)" % x y)