import sqlite3
db=sqlite3.connect('PythonU.db')
cursor=db.cursor()
cursor.execute("Select * from Students")
for row in cursor:
    print row

This code is part of the book "Python for Bioinformatics", by Sebastian Bassi (sbassi@genesdigitales.com). Return to home page.