mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-09-24 23:01:18 +08:00
fix(curriculum): clarify discount percentage in step 17 instruction (#65116)
Co-authored-by: Jeevankumar-S <jeevenkumar2003@email.com>
This commit is contained in:
co-authored by
Jeevankumar-S
parent
9f0f7155e5
commit
42e4238cf1
+1
-1
@@ -9,7 +9,7 @@ dashedName: step-17
|
||||
|
||||
Implement the `is_applicable` method for your `FixedAmountDiscount` class. A fixed amount discount should only be applied if it makes sense economically.
|
||||
|
||||
Return `True` if `product.price * 0.9` is greater than `self.amount`, otherwise return `False`. This ensures the discount doesn't exceed 10% of the original price, which would be unrealistic.
|
||||
Return `True` if `product.price * 0.9` is greater than `self.amount`, otherwise return `False`. This ensures the discount is less than 90% of the original price, so it's not unrealistic.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
Reference in New Issue
Block a user