168k views
4 votes
Can anyone add some code for me following the directions please :)

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

User Meesern
by
5.7k points

1 Answer

5 votes

Answer:

soryyyyy

Step-by-step explanation:

i am so sorry i messed up i am gonna tell you again

User VoidStern
by
5.6k points