![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 29.11.2021 23:00 meganwintergirl
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](/tpl/images/cats/User.png)
Answers: 2
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 21.06.2019 20:40
Peripherals are part of the main computer. true false
Answers: 3
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 15:20
What does a bonus object do? a. subtracts lives b. keeps track of a player's health c. gives a player an advantage d. makes text appear
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 20:00
Match the file formats with the types of multimedia they can store
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 00:30
Which boolean operator enables you to exclude a search term? a} not b} and c} or d} plus
Answers: 1
You know the right answer?
Write a program to define a Superhero class, set attributes and call the methods. Use the following...
Questions
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/fizika.png)
Physics, 29.06.2019 02:00
![question](/tpl/images/cats/istoriya.png)
History, 29.06.2019 02:00
![question](/tpl/images/cats/health.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/biologiya.png)
Biology, 29.06.2019 02:00
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 29.06.2019 02:00
![question](/tpl/images/cats/obshestvoznanie.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mir.png)
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 29.06.2019 02:00
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/istoriya.png)
History, 29.06.2019 02:00
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/obshestvoznanie.png)
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 29.06.2019 02:00