I'm new to Python and OOP. I have previously done python in procedural programming style.
I need to write a class named Pet, which should have the following data attributes:
- __name (for the name of a pet)
 - __animal_type (for the type of a pet, such as Dog, Cat)
 - __age (for the pet’s age)
 
It should contain an __init__initializer that creates these attributes. It should also have
all the mutator and accessor methods. Write a program that creates an object of the
class and prompts the user to enter the name, type, and age of his pet. At the end of the
program, display the pet’s name, type, and age on the screen. The sample output is
given below.
Enter Pet Name: Lucky
Enter Pet Type: Dog
Enter Pet Age: 5
Pet Lucky is a dog, and it is 5 years old
This is what I have done so far (it doesn't run on my cmd, there is no error code)
class Pet:
    def set_name(self, name):
        self.__name = name
    def set_animal_type(self, animal_type):
        self.__animal_type = animal_type
    def set_age(self,age):
        self.__age = age
    def get_name(self):
        return self.__name
    def get_animal_type(self):
        return self.__animal_type
    def get_age(self):
        return self.__age
name = input("Enter pet name: ")
animal_type = input("Enter pet type: ")
age = input("Enter pet age: ")
p = Pet()
p.set_name(name)
p.set_animal_type(animal_type)
p.set_age(age)
print("Pet %s is a %s ,and it is %s years old." %(p.set_name(), p.set_animal_type(), p.set_age()))