Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Fundamentals Of Database Systems

Authors: Sham Navathe,Ramez Elmasri

5th Edition

B01FGJTE0Q, 978-0805317558

Students also viewed these Databases questions

Question

How do prenuptial agreements differ from other contracts?

Answered: 1 week ago

Question

Describe ERP and how it can create efficiency within a business

Answered: 1 week ago