subject

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)
O4
O 12
O 32
4096


What will be the output?

class num:
def __init__(self, a);
self.number = a
def_mul__(self,b):
* r

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:30
Imagine that you have a friend who is starting a small business and is interested in using social media to spread the word. he is not certain that it is a good move, and has come to you for . would you advise him to use social media to advertise his business? why or why not? support you answer with information from the text.
Answers: 1
question
Computers and Technology, 24.06.2019 13:30
Which of the following is not a “fatal four” event?
Answers: 2
question
Computers and Technology, 25.06.2019 01:00
Why was it important for the date format to be standardized by the international organization for standardization
Answers: 1
question
Computers and Technology, 25.06.2019 02:00
What type of multimedia is a game cd? game cds are examples of multimedia
Answers: 1
You know the right answer?
What will be the output? class num:
def __init__(self, a);
self. number = a
def_m...
Questions
question
Mathematics, 26.04.2021 03:50
question
Mathematics, 26.04.2021 03:50
question
Biology, 26.04.2021 03:50
Questions on the website: 13722363