Question
CSE260 assesment Sir it is urgent.do fast. Please solve this code in python3 paste with proper intendent blocks by pressing (CTRL+SHIFT+V),Also please provide code screenshot,
CSE260 assesment
Sir it is urgent.do fast. Please solve this code in python3 paste with proper intendent blocks by pressing (CTRL+SHIFT+V),Also please provide code screenshot, Thank you.
Do not need comments just give me solution as fast as possible. I am running out of time. Attach a screenshot with your solve.
: 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} Rating: {self.rating} Genre: {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']
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started