from Medico import Medico from Profesor import Profesor """ Prueba de las clases """ if __name__ == "__main__": a = [] xa = Profesor("Antonio", "Carrillo", 50, "Prof 3289239823") a.append(xa) xb = Medico("Juan", "Ferrer", 50, "cirujano", "832098092") a.append(xb) for k in a: k.visualiza()