import sqlite3

conn=sqlite3.connect('Survey.db')

fo=open('insertcommand.txt')
str=fo.readline()
while str:
    str="INSERT INTO data VALUES"+str
    conn.execute(str)
    #print(str)
    str=fo.readline()
conn.commit()
conn.close()
fo.close()

[((3, 5, 3, 33), 'sqlite3.connect', 'sqlite3.connect', ({(3, 21, 3, 32): '"""Survey.db"""'}, {}), "('Survey.db')", False, 'import sqlite3\n')]