Skip to content

Commit b854af2

Browse files
committed
Update davidrguez98.py
1 parent 6f6fb2c commit b854af2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Roadmap/19 - ENUMERACIONES/python/davidrguez98.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ def ship(self):
6969

7070
def deliver(self):
7171
if self.status == order_status.Shipped:
72-
self.status == order_status.Delivered
73-
print("El pedido ya se ha entregado.")
72+
self.status = order_status.Delivered
73+
print("El pedido ya se ha enviado.")
7474
else:
75-
print("El pedido ya ha sido enviado o cancelado.")
75+
print("El pedido necesita ser enviado antes de entregarse.")
7676

7777
def cancel(self):
7878
if self.status == order_status.Pending:
@@ -95,4 +95,4 @@ def display_status(self):
9595
Order1.ship()
9696
Order1.display_status()
9797
Order1.deliver()
98-
Order1.display_status()
98+
Order1.display_status()

0 commit comments

Comments
 (0)