From bcd77ebd7fdc6986bff6c32774972f7ce4fdbeef Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 8 Jul 2023 18:21:31 -0300 Subject: [PATCH 1/2] emma --- ObjetosPractica.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 ObjetosPractica.py diff --git a/ObjetosPractica.py b/ObjetosPractica.py new file mode 100644 index 000000000..71cc80884 --- /dev/null +++ b/ObjetosPractica.py @@ -0,0 +1,25 @@ +from os import path + + +class Auto: + def __init__(self, marca, modelo, anio, color): + self.marca = marca + self.modelo = modelo + self.anio = anio + self.color = color + self.velocidad_actual = 0 + + def acelerar(self, velocidad): + self.velocidad_actual += velocidad + def frenar(self, velocidad): + self.velocidad_actual -= velocidad + def obtener_velocidad_actual(self): + return self.velocidad_actual + +mi_auto = Auto('bmw', '325i', '1993', 'gris') + +mi_auto.acelerar(15) + +mi_auto.obtener_velocidad_actual() + +sys path From d1ce5f72e170b3962a65e4f3955abde1b978cead Mon Sep 17 00:00:00 2001 From: emma <135241025+vvvemmavvv@users.noreply.github.com> Date: Tue, 11 Jul 2023 19:28:03 -0300 Subject: [PATCH 2/2] Create checkpoint.py --- checkpoint.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 checkpoint.py diff --git a/checkpoint.py b/checkpoint.py new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/checkpoint.py @@ -0,0 +1 @@ +