Question: class Date: monthNames ('January', 'February, March', ' April ' , 'May , ' June , ' July ' , ' August ' September', 'October', 'November',
class Date: monthNames ('January', 'February, "March', ' April ' , 'May , ' June , ' July ' , ' August ' September', 'October', 'November', 'December') def init (self): # By default: January 1 , 2000 self.month = 1 self._day-1 self._year 2000 - (a) Define a getDay function that returns the day as an integer. (b) Define a setYear function that takes an integer parameter specifying the year and sets the value of the year attribute. (c) Define the str function. This should return a string that represents the date in the format 'January 1, 2000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
