Python Forum
Organizing the output of 2 for loops
Thread Rating:
  • 2 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Organizing the output of 2 for loops
#6
To create the DB, take a look to the module sqlite3, you can create in-memory DB with:
import sqlite3

db = sqlite3.connect(":memory:")
but designing the DB is not an easy task...

About the error in your code, you are providing 6 arguments to the append function, that only accepts one.
The correct line is:
record = (obj, viewdata(rawvalue)[0][3],viewdata(rawvalue)[0][0], viewdata(rawvalue)[0][1], viewdata(rawvalue)[0][2],rawvalue)
io.append(record)
Reply


Messages In This Thread
Organizing the output of 2 for loops - by pythoneer - May-19-2018, 04:53 AM
RE: Organizing the output of 2 for loops - by killerrex - May-20-2018, 10:15 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020