The output of this program would be:
metal
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.type)
What is the output?
tyoe
metal
False
an error message
1 answer