dame un codigo para hacer reservaciones de citas en una clinica con clases
class Appointment(object): def __init__(self, name, day, time): self.name = name self.day = day self.time = time class MakeAppointment(object): def __init__(self): self.appointments = [] def add_appointments(self, name, day, time): appointment = Appointment(name, day, time) self.appointments.append(appointment) def schedule(self): for appointment in self.appointments: print("{} {} {}".format(appointment.name, appointment.day, appointment.time)) appointments = MakeAppointment() appointments.add_appointments("Asher", "Monday", "5:00pm") appointments.add_appointments("Julian", "Tuesday", "6:00pm") appointments.schedule()