from appointment import Appointment class MonthlyAppointment(Appointment): def __init__(self, purpose, location, day, hour, minute): super( ).__init__(purpose, location, hour, minute) self.day = day def __str__(self): base = super( ).__str__( ) return base + f"\nDay: {self.day}" def occurs_on(self, year, month, day): return self.day == day