Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribedimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

More Books

Students also viewed these Databases questions

Question

Write a letter asking them to refund your $1,500 down payment.

Answered: 1 week ago