From 4a36bfdfcaf5a60112d3b33717b3c3e3db9bc437 Mon Sep 17 00:00:00 2001 From: Donald Calloway Date: Mon, 15 Sep 2025 10:28:52 -0700 Subject: [PATCH] Changed product2 instance --- product_class.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product_class.py b/product_class.py index e07ed0e..cda9dff 100644 --- a/product_class.py +++ b/product_class.py @@ -16,10 +16,10 @@ class product: # Example usage: -product1 = product("Laptop", 1999.99, -1) +product1 = product("Laptop", 1999.99, 1) print(product1.display_info()) # Output: Item: Laptop, Price: $1999.99 print(product1.calculate_total_price()) # Output: 3999996.0001 -product2 = product("Smartphone", 799.99, 3) +product2 = product("Smartphone", 799.99, -3) print(product2.display_info()) # Output: Item: Smartphone, Price: $799.99 print(product2.calculate_total_price()) # Output: 2399.97