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(abbiToolKit.hasHammer)
What is the output?
(1 point)
True
False
abbiToolKid.hasHammer
an error message
1 answer
The output is False.