From cdb7c753322e78a1a055830c48cf1c3825519a95 Mon Sep 17 00:00:00 2001 From: Lakshminarasimhan <137640490+narasimhan-lakshmi@users.noreply.github.com> Date: Fri, 15 May 2026 20:37:55 +0530 Subject: [PATCH] fix: fixed first person language in discount calculator workshop (#67426) Signed-off-by: Lakshminarasimhan <137640490+narasimhan-lakshmi@users.noreply.github.com> Co-authored-by: majestic-owl448 <26656284+majestic-owl448@users.noreply.github.com> --- .../workshop-discount-calculator/68e5293bd00d2fe134f5898a.md | 2 +- .../workshop-discount-calculator/68e52994bc7ea2e3dec5309d.md | 2 +- .../workshop-discount-calculator/68e52994bc7ea2e3dec530a6.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/curriculum/challenges/english/blocks/workshop-discount-calculator/68e5293bd00d2fe134f5898a.md b/curriculum/challenges/english/blocks/workshop-discount-calculator/68e5293bd00d2fe134f5898a.md index 00dc82bc452..ecb483c6f17 100644 --- a/curriculum/challenges/english/blocks/workshop-discount-calculator/68e5293bd00d2fe134f5898a.md +++ b/curriculum/challenges/english/blocks/workshop-discount-calculator/68e5293bd00d2fe134f5898a.md @@ -7,7 +7,7 @@ dashedName: step-19 # --description-- -Let's test your new discount strategy. After the existing code, create an instance of `FixedAmountDiscount` with an amount of `5` and assign it to a variable named `fixed_discount`. Then apply this discount to the product and print the result. +You can now test the new discount strategy. After the existing code, create an instance of `FixedAmountDiscount` with an amount of `5` and assign it to a variable named `fixed_discount`. Then apply this discount to the product and print the result. # --hints-- diff --git a/curriculum/challenges/english/blocks/workshop-discount-calculator/68e52994bc7ea2e3dec5309d.md b/curriculum/challenges/english/blocks/workshop-discount-calculator/68e52994bc7ea2e3dec5309d.md index 3c87607c09b..3fbddbc0b4f 100644 --- a/curriculum/challenges/english/blocks/workshop-discount-calculator/68e52994bc7ea2e3dec5309d.md +++ b/curriculum/challenges/english/blocks/workshop-discount-calculator/68e52994bc7ea2e3dec5309d.md @@ -7,7 +7,7 @@ dashedName: step-20 # --description-- -Now let's create a third discount strategy for premium users. Create a class named `PremiumUserDiscount` that inherits from `DiscountStrategy`. +For the third discount strategy, create a class named `PremiumUserDiscount` that inherits from `DiscountStrategy`. Unlike the previous strategies, this one doesn't need an `__init__` method because it doesn't store any configuration. It will apply a fixed 20% discount to all premium users. diff --git a/curriculum/challenges/english/blocks/workshop-discount-calculator/68e52994bc7ea2e3dec530a6.md b/curriculum/challenges/english/blocks/workshop-discount-calculator/68e52994bc7ea2e3dec530a6.md index 85871ffbd7d..1bfa44751af 100644 --- a/curriculum/challenges/english/blocks/workshop-discount-calculator/68e52994bc7ea2e3dec530a6.md +++ b/curriculum/challenges/english/blocks/workshop-discount-calculator/68e52994bc7ea2e3dec530a6.md @@ -7,7 +7,7 @@ dashedName: step-29 # --description-- -Now let's test the complete discount system! Add an `if` statement checking if `__name__ == '__main__'` and move `product = Product('Wireless Mouse', 50.0)` inside it. +It's time to test the complete discount system! Add an `if` statement checking if `__name__ == '__main__'` and move `product = Product('Wireless Mouse', 50.0)` inside it. After that, inside the `if` block, create a variable `user_tier` and set it to the string `Premium`. Then create a variable `strategies` set to a list of strategies containing `PercentageDiscount(10)`, `FixedAmountDiscount(5)`, and `PremiumUserDiscount()`.