QuizSQLite/run.py
def delete_question_with_id(db:Connection, id):
    '''delete the question with the given id from the database'''
    cursor = db.cursor()
    sql = "DELETE FROM questions WHERE id=?"
    cursor.execute(sql,(id,))    #exectue the sql passing a tuple to replace the question mark(s)
    db.commit()
delete the question with the given id from the database
delete the question with the given id from the database
delete the question with the given id from the database
def delete_question_with_id(db:Connection, id):
    cursor = db.cursor()
    sql = "DELETE FROM questions WHERE id=?"
    cursor.execute(sql,(id,))    
    db.commit()
def delete_question_with_id ( db : Connection , id ) : cursor = db . cursor ( ) sql = "DELETE FROM questions WHERE id=?" cursor . execute ( sql , ( id , ) ) db . commit ( )
delete the question with the given id from the database
delete the question with the given id from the database
'''delete the question with the given id from the database''' #exectue the sql passing a tuple to replace the question mark(s)
db
Connection
id