Hi could you explain why my code is not working for b = a + a + a (it's a review question)
__add__ method must return a new Dist Object to make it work
OUTPUT:
CODE :
class Dist:
def __init__(self,miles=0.0):
self.m = miles
def __repr__(self):
result = round(self.m,1)
return str(result)+'miles'
def addKilo(self):
self.m+=0.62
def __add__(self,other):
total = self.m + other.m
return Dist(total)
Hi, I am working the results of an experiment would you be able to review my conclusion and advise if this makes sense thank you 2, 2,
This question relates to Javascript. Could you please show me why my code is not working? I want to create 2 text boxes and have the user enter something into both of them. If the text entered into both boxes is identical the a green message is made visible. If the boxes are different a red message is made visable. Please keep it simple because I am new to javascript. <html> <head> <title></title> <script>...
Hi, Could you tell me why $60,000 of reduced in working capital is added in the year 0? Thank you very much in advance! in COSIS, dllu mo m Toqun dll dl livestment in net working capital of 650 000. If the tax rate is 34 percent and the discount rate is 10 percent, what is the NPV of this project? 14. Project Evaluation IL art Evaluation ILO1] Your firm is contemplating the purchase of a new $425.000 computer-based order...
In this Javascript code, why are 2 for loops needed? could you please explain this to me. This is the outcome * ** *** **** ***** ****** ******* ******** ********* the code is <html> <head> <title></title> <script> showStars(10); function showStars(rows){ for(var i = 0; i < rows; i++){ var pattern = ""; for(var j...
hi could someone kindly solve this electromagnetic physics question? 1.Can you explain what the answer is and explain why and how you got the answer? 2.Can you explain what the answer is and also explain why and how you got this answer as well? 3.Can you explain what the answer is and also explain why and how you got this answer? NOTE: These are all part of one question. I just split it up to make it easier for you...
Hi. I want to ask that why my answer was wrong in this question. I need a reason why my answer was wrong and can not be anwer. This could mean lncluding of which one is answer... Please write down a reason why my answer was wrong. ... !!! plz write down a reason why my answer was wrong is important for me ....!! MY answer on this question was "C" Q. Agent orange and insecticides cause hyperventilation and are...
Hi, Really struggling to get my head around this question Could you please provide an explanation with your working. Trying to better understand what's being asked. Would really appreciate it if you could explain your working. I am happy with my answer to part a), but can't understand where to start in part b) Many thanks! Question 2 The ideal gas law relates the temperatueresure, and the temperature, pressure, and volume of an ideal gas. For n moles of gas,...
Hi! Could you please help me with this problem please?? My sodium acetate solution concentration is 0.200M and the pKa is 4.74
Hi, could you please help me with the following question. Explain in as much detail as possible please so I can practice it. Thank you for your help! Suppose that the demand and supply curves for a monthly broadband plan can be represented by: QD= 100 - P Qs =-50 + 2P The current price of these plans in the market is $80 per month. a. Is this market in equilibrium? Would you expect the price to rise or fall?...
Hi there, could you please explain the difference between salvage value and residual value. Are they the same?