Question: Using python 3.x, follow the directions in the Comments of the attached file. Modify the main block (if-statement) only, and upload the altered/fixed code class


Using python 3.x, follow the directions in the Comments of the attached file. Modify the main block (if-statement) only, and upload the altered/fixed code
class CostException (Exception): def init (self,msg, Cos): . init (msg) super solf.cost-cost # MSRP-Manufactured Sale Price class ShoppingItem) def init (self,name,msrp) if not isinstance (namo, str): if len (name)0 if msrp self. msrp: self. currenPrice-price raise Coslixcepon ("Canno be negalive",price) raise CostException ("Too low",price) raise CostException ("No price gouging", price)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
