help me asap and use python Design Naruto class and MyHeroAcademia class which inherit from Anime class  so that the following code provides the expected output. You can not change any of the given code. Do not modify the given parent  class.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

help me asap and use python
Design Naruto class and MyHeroAcademia class which inherit from Anime class 
so that the following code provides the expected output.
You can not change any of the given code. Do not modify the given parent 
class.

Note: add_character() method in both child classes should work for any 
number of parameters and assume parameters will be even numbers.

class Anime:
   def __init__(self, name, rating, genre):
     self.name = name
     self.rating = rating
     self.genre = genre

   def add_character(self, *info):
     pass

   def __str__(self):
     s = f"Name: {self.name}\nRating: {self.rating}\nGenre: {self.genre}"
     return s


# Write your codes here.
naruto = Naruto("Naruto", 10, "Adventure Fiction", 2007)
naruto.add_character("Naruto Uzumaki", "Main", "Itachi 
Uchiha", "Main", "Madara Uchiha", "Anti 
Hero", "Pain", "Supporting", "Shikamaru Nara", "Supporting")
print('1.------------------------------------')
print(naruto.release_year())
print('2.------------------------------------')
print(naruto)
print('3.====================================')
my_hero_academia = MyHeroAcademia("My Hero Academia", 8, "Superhero 
Fiction", 5)
my_hero_academia.add_character("Supporting", "Uraraka", "Anti 
Hero", "Nomu", "Supporting", "Mirio", "Main", "Midoriya", "Main", "Todoroki")
print('4.------------------------------------')
print(my_hero_academia.season_status())
print('5.------------------------------------')
print(my_hero_academia)

OUTPUT:
1.------------------------------------
Naruto has been released in 2007!!!
2.------------------------------------
Anime Details:
Name: Naruto
Rating: 10
Genre: Adventure Fiction
Release Year: 2007
Characters:
Main: ['Naruto Uzumaki', 'Itachi Uchiha']
Anti Hero: ['Madara Uchiha']
Supporting: ['Pain', 'Shikamaru Nara']
3.====================================
4.------------------------------------
My Hero Academia has premiered 5 seasons!!!
5.------------------------------------
Anime Details:
Name: My Hero Academia
Rating: 8
Genre: Superhero Fiction
Season Premiered: 5
Characters:
Supporting: ['Uraraka', 'Mirio']
Anti Hero: ['Nomu']
Main: ['Midoriya', 'Todoroki']

 
Question:
Design Naruto class and MyHeroAcademia class which inherit from Anime class
so that the following code provides the expected output.
You can not change any of the given code. Do not modify the given parent
class.
Note: add_character() method in both child classes should work for any
number of parameters and assume parameters will be even numbers.
class Anime:
def _init_(self, name, rating, genre):
self.name = name
self.rating = rating
self.genre = genre
def add_character(self, "info):
pass
def_str_(self):
s = P'Name: {self.name}inRating: (self.rating}inGenre: {self.genre}"
return s
# Write your codes here.
naruto = Naruto("Naruto", 10, "Adventure Fiction", 2007)
naruto.add_character("Naruto Uzumaki", "Main", "Itachi
Uchiha", "Main", "Madara Uchiha", "Anti
Hero". "Pain". "Supporting", "Shikamaru Nara", "Supporting")
print('1.
print(naruto.release_year))
print(2.--
print(naruto)
print('3.= ======
==========---=')
my_hero_academia - MyHeroAcademia("My Hero Academia", 8, "Superhero
Fiction", 5)
my_hero_academia.add_character("Supporting", "Uraraka", "Anti
Hero". "Nomu", "Supporting", "Mirio". "Main", "Midoriya", "Main", "Todoroki")
print(4.
print(my_hero_academia.season_status())
print('5.
print(my_hero_academia)
Transcribed Image Text:Question: Design Naruto class and MyHeroAcademia class which inherit from Anime class so that the following code provides the expected output. You can not change any of the given code. Do not modify the given parent class. Note: add_character() method in both child classes should work for any number of parameters and assume parameters will be even numbers. class Anime: def _init_(self, name, rating, genre): self.name = name self.rating = rating self.genre = genre def add_character(self, "info): pass def_str_(self): s = P'Name: {self.name}inRating: (self.rating}inGenre: {self.genre}" return s # Write your codes here. naruto = Naruto("Naruto", 10, "Adventure Fiction", 2007) naruto.add_character("Naruto Uzumaki", "Main", "Itachi Uchiha", "Main", "Madara Uchiha", "Anti Hero". "Pain". "Supporting", "Shikamaru Nara", "Supporting") print('1. print(naruto.release_year)) print(2.-- print(naruto) print('3.= ====== ==========---=') my_hero_academia - MyHeroAcademia("My Hero Academia", 8, "Superhero Fiction", 5) my_hero_academia.add_character("Supporting", "Uraraka", "Anti Hero". "Nomu", "Supporting", "Mirio". "Main", "Midoriya", "Main", "Todoroki") print(4. print(my_hero_academia.season_status()) print('5. print(my_hero_academia)
OUTPUT:
1.
Naruto has been released in 2007!!
2.
Anime Details:
Name: Naruto
Rating: 10
Genre: Adventure Fiction
Release Year: 2007
Characters:
Main: ['Naruto Uzumaki, 'Itachi Uchiha']
Anti Hero: ['Madara Uchiha']
Supporting: ['Pain', 'Shikamaru Nara']
3.
4.
My Hero Academia has premiered 5 seasons!!
5.
Anime Details:
Name: My Hero Academia
Rating: 8
Genre: Superhero Fiction
Season Premiered: 5
Characters:
Supporting: ['Uraraka', "Mirio']
Anti Hero: ['Nomu']
Main: ['Midoriya', "Todoroki']
Transcribed Image Text:OUTPUT: 1. Naruto has been released in 2007!! 2. Anime Details: Name: Naruto Rating: 10 Genre: Adventure Fiction Release Year: 2007 Characters: Main: ['Naruto Uzumaki, 'Itachi Uchiha'] Anti Hero: ['Madara Uchiha'] Supporting: ['Pain', 'Shikamaru Nara'] 3. 4. My Hero Academia has premiered 5 seasons!! 5. Anime Details: Name: My Hero Academia Rating: 8 Genre: Superhero Fiction Season Premiered: 5 Characters: Supporting: ['Uraraka', "Mirio'] Anti Hero: ['Nomu'] Main: ['Midoriya', "Todoroki']
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY