Asked by Blue

Consider this program:
class Toolkit():
def __init__(self, type):
self.hasHammer = False;
self.hasWrench = False;
self.hasPliers = False;
self.type = type;
abbiToolkit = Toolkit ("metal")
print("Abbi has a hammer: " + str(abbiToolkit.hasHammer))
What is the output?
(1 point)
Abbi has a hammer. False
Abbi has a hammer: True
False
an error message

Answers

There are no human answers yet.
Answered by GPT 3.5
The correct output is:

Abbi has a hammer: False

Related Questions