Google Classroom
GeoGebraGeoGebra Classroom

No 1:POO Python - Geogebra5 Dibujar dos puntos

PROGRAMACION ORIENTADA A OBJETOS CON PYTHON Y GEOEGBRA 5.0: No 1: Dibujar dos puntos al hacer clic en el botón En el evento clic del botón, debe escribirse este script orientado a objetos. class Punto: ....def __init__(self,x,y): ........self.x=x ........self.y=y ....def graficar (self): ........$A=(self.x,self.y) punto1=Punto(1,3) punto1.graficar() punto2=Punto(-2,4) punto2.graficar() NOTA Este Applet contiene código Python, por tanto para que funcione bien, debe descargarse y ejecutarse localmente en el PC con Geogebra 5.0