Question 1 a python class Myexpense that is an extension of…

Question Answered step-by-step Question 1 a python class Myexpense that is an extension of… Question 1a python class Myexpense that is an extension of built-in dict class. This class contains a method expense() which will calculate the total expense over a year. A sample object creation is as below. User spends 100.00$ in the month of January, 3000.99$ in March and so on. expense() method will return the total spent over these three months. For this particular example: expense() should return 3224.66$. Sample object creation_med=MyExpense({‘Jan’:100.00, ‘Mar’:3000.99, ‘April’: 123.67}) #A. Define the class with the method#B Make a method call  Computer Science Engineering & Technology Python Programming IT 209 Share QuestionEmailCopy link Comments (0)