1. Create a class to represent a pet. The class should have the…

Question Answered step-by-step 1. Create a class to represent a pet. The class should have the… 1. Create a class to represent a pet. The class should have the attributes of pet_name, pet_type, and pet_age. The pet class should have an accessor and mutator (getter and setter) for each of the attributes. The pet class should be created and saved in its own pet.py file.Create a program to import your pet class and create 5 pet instances by prompting the user for the pet_name, pet_type, and pet_age and then adding the instance to a list. Your program should then iterate through the list and print the name and age of each pet. 2. Create a class to model the toss of a coin. It should have the following attributes and methods.a sideup attribute which is a string and may have the value “Heads” or “Tails”an __init__ method that initializes sideup to “Heads”a toss method that randomly sets the value of sideup to either “Heads” or “Tails”an accessor method get_sideup(self) that returns the value of the sideup attributea __str__ method that prints out the state of a Coin objectcreate 5 Coin objects and add them to a listiterate through the list and print out the state of each object (instance).3. Using Python code:Create a new Sqlite database named _.dbCreate a table to hold a list of your favorite books There should be three columns. The first will contain the authors last name, the second will hold the authors first name and the third will hold the title.Create statements to add in ten (10) rows of authors and books to the tableUse a SELECT statement to retrieve and print all of the rows in the tableCreate and execute a statement to update the first name of one author to “CalPoly”Create and execute a statement to delete one row from the tableUse a SELECT statement to retrieve and print all of the rows in the table  Computer Science Engineering & Technology Python Programming BUS 392 Share QuestionEmailCopy link Comments (0)