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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!