subject

Write a program to define a Superhero class, set attributes and call the methods. Use the following guidelines to write your program: Look over the code that starts the Superhero class. You may use this code as a starting point. Come up with two additional attributes and one method to add to the class. Be creative! Some attributes could be a motto, villain, strength, weakness, or alter ego. An action might be saveWorld() or transformHero().
class Superhero:

# Superhero class represents the facts related to a superhero.

def __init__(self, name = "", strengthPts = 0):

# Create a new Superhero with a name and other attributes.

self. name = name
self. strengthPts = strengthPts

def addStrengthPts(self, points):

# Adds points to the superhero's strength.

self. strengthPts = self. strengthPts + points

Update the class by including at least two new attributes and one new method.
In the main() method, create your superhero. Be sure to assign values to its attributes and call its methods.
Create output that describes your superhero in a story fashion or a series of events.
Write the pseudocode for this program. Be sure to include any needed input, calculations, and output.
Please help me write a input and the output for this code using python idle.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 15:10
What role did women fill during world war ii?
Answers: 1
question
Computers and Technology, 24.06.2019 02:40
Has anyone seen my grandma shes been gone for 4 years already
Answers: 1
question
Computers and Technology, 24.06.2019 16:00
Which of the following characters is acceptable to use in a filename? ? / – %
Answers: 1
question
Computers and Technology, 24.06.2019 19:20
Kiesha has a worksheet with a range of cells using the following columns: name, score, group, study group, and date. kiesha needs to sort the worksheet on the date field. which option she use to most efficiently complete this task ? a use the cut and paste option to reorganize the data to fit that order b use the filter function to organize the data based on the date c use the order function to organize the data based on the date d use the sort function to organize the data based on date order
Answers: 3
You know the right answer?
Write a program to define a Superhero class, set attributes and call the methods. Use the following...
Questions
question
Mathematics, 18.03.2021 03:30
question
Chemistry, 18.03.2021 03:30
question
Mathematics, 18.03.2021 03:30
question
Mathematics, 18.03.2021 03:30
Questions on the website: 13722367