Practical Task
Practical Task
import sqlite3
conn = sqlite3.connect('school.db')
cursor = conn.cursor()
cursor.execute('''
''')
cursor.execute('''
VALUES (?, ?, ?, ?)
conn.commit()
def get_students_in_course(course_name):
cursor.execute('''
''', (course_name,))
students = cursor.fetchall()
print(student[0])
cursor.execute('''
conn.commit()
# Example usage:
get_students_in_course('Database Systems')
update_student_age(2, 23)
get_students_in_course('Database Systems')
conn.close()