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


