Question: Create a new Python script named library.py . Write a Python script using the sqlite 3 module to create a database named 'library.db ' and
Create a new Python script named library.py
Write a Python script using the sqlite module to create a database named 'library.db and a table in it named 'books'. This table should have the following columns:
id: a unique identifier for each book primary keytitle: the title of the book'author': the author of the book'publicationyear': the year the book was published'genre': the genre of the book
Insert data into the 'books' table. This data can be real or made up but should include at least different books from at least different genres.
Write Python scripts using the sqlite module to perform the following tasks
Select all books in your table Select all books of a specific genre of your choiceUpdate the publication year of a specific book Delete a specific book from the table
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
