Task 1: Create the base class "Voltran" Create a Python class called "Voltran" that will serve as
the base class for all voltrans. The Voltran class should have the following attributes and
methods: Attributes: -name (string): the name of the Voltran -health (int): the health of the
Voltran -attack_power (int): the attack power of the Voltran -defense_power (int): the defense
power of the Voltran Methods: -init(self, name, health, attack_power, defense_power):
constructor method that initializes the attributes with the values passed in as parameters -
attack(self, opponent): a method that calculates the damage dealt to an opponent Voltran based
on the Voltran's attack power and the opponent's defense power, and updates the opponent's
health accordingly -defend(self): a method that reduces the damage dealt to the Voltran by half
Task 2: Create sub-classes for different types of Voltrans Create two sub-classes that inherit from
the Voltran class: "Warrior" and "Defender". Each sub-class should have its own unique
attributes and methods. Class: Warrior Attributes: -weapon (string): the type of weapon the
Warrior is equipped with Methods: -init(self, name, health, attack_power, defense_power,
weapon): constructor method that initializes the Warrior attributes with the values passed in as
parameters -attack(self, opponent): a method that calculates the damage dealt to an opponent
Voltran based on the Warrior's attack power, weapon, and the opponent's defense power, and
updates the opponent's health accordingly -defend(self): a method that reduces the damage dealt
to the Warrior by 1/3 Class: Defender Attributes:
-shield_power (int): the strength of the Defender's shield on a scale from 1 to 10 Methods:
_init(self, name, health, attack_power, defense_power, shield_power): constructor method that
initializes the Defender attributes with the values passed in as parameters -attack(self, opponent):
a method that calculates the damage dealt to an opponent Voltran based on the Defender's attack
power and the opponent's defense power, and updates the opponent's health accordingly -
defend(self): a method that reduces the damage dealt to the Defender by 2/3 Task 3: Create a
Battle class to simulate battles between two voltrans Create a Python class called "Battle" that
will simulate battles between two Voltrans. The Battle class should have the following methods:
Methods: -init(self, voltran1, voltran2): constructor method that initializes the two Voltrans that
will participate in the battle -start(self): a method that simulates the battle between the two
Voltrans, alternating turns until one of the Voltrans' health reaches 0 or below. The method
should print out the name of the winner. Create instances of the Voltran, Warrior, and Defender
classes, and test the Battle class by simulating battles between the Voltrans. Submission Submit
your assignment as a Python script (.py file) named "studentID.py". Include comments in your
code to explain each step and.