IDNLearn.com makes it easy to find accurate answers to your questions. Join our community to receive prompt and reliable responses to your questions from knowledgeable professionals.
What will be the output?
class num:
def __init__(self,a):
self.number = a
def __mul__(self,b):
return self.number + b.number
# main program
numA = num(8)
numB = num(4)
result = numA * numB
print(result)
12
4
32
4096
Sagot :
Thank you for being part of this discussion. Keep exploring, asking questions, and sharing your insights with the community. Together, we can find the best solutions. Thank you for trusting IDNLearn.com with your questions. Visit us again for clear, concise, and accurate answers.