Scenario Examine the following Database Design. This is a sqlite3 database stored in your working directory and is named "academic_papers_populated.db"

PHOTO EMBED

Mon Mar 27 2023 11:26:29 GMT+0000 (Coordinated Universal Time)

Saved by @kalvadet #python #sql

import sqlite3
JList = []

class MyJournal:
    
    def __init__(self,id,name):
        self.id = id
        self.name = name
        
    def description(self):
        return "Journal number: " + str(self.id) + " has the name " + self.name

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

cursor = conn.cursor()


for row in cursor.execute('''SELECT * FROM Journal;'''):

    JList.append(MyJournal(row[0],row[1]))

cursor.close()
content_copyCOPY