Question: 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',

 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']

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']

urgent

Question: Design Naruto class and MyHero Academia 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} Rating: {self.rating} Genre: {self.genre}" returns # 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 = MyHero Academia("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) 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 MyHero Academia 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} Rating: {self.rating} Genre: {self.genre}" returns # 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 = MyHero Academia("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)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!