From 5891a16cef22e3f653279ca72b62e0702a6ba621 Mon Sep 17 00:00:00 2001 From: Jessica Wilkins <67210629+jdwilkin4@users.noreply.github.com> Date: Thu, 23 Apr 2026 17:37:12 -0700 Subject: [PATCH] fix(curriculum): remove repetitive explanations in bill splitter workshop (#67081) --- .../workshop-bill-splitter/69757cc0faae0152c1418aad.md | 8 +------- .../workshop-bill-splitter/6977a4306bb3e856690a4890.md | 2 -- .../workshop-bill-splitter/697a7f71ebfcd9e4cacd69c2.md | 2 +- .../workshop-bill-splitter/6982684f3a25f379e195a5fc.md | 4 ++-- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/curriculum/challenges/english/blocks/workshop-bill-splitter/69757cc0faae0152c1418aad.md b/curriculum/challenges/english/blocks/workshop-bill-splitter/69757cc0faae0152c1418aad.md index 57a534e6929..de3b59a9b0e 100644 --- a/curriculum/challenges/english/blocks/workshop-bill-splitter/69757cc0faae0152c1418aad.md +++ b/curriculum/challenges/english/blocks/workshop-bill-splitter/69757cc0faae0152c1418aad.md @@ -9,13 +9,7 @@ dashedName: step-1 In this workshop, you will practice working with numbers and mathematical operations to build a bill splitter. This tool will calculate how much each person owes after adding meal costs and a tip. -To start, you need a way to keep track of the total amount as costs are added. In Python, you can use a variable to store an integer (a whole number) that changes over time. - -For example, you might write: - -```py -my_number = 2 -``` +To start, you need a way to keep track of the total amount as costs are added. Create a variable named `running_total` and assign it the value `0`. diff --git a/curriculum/challenges/english/blocks/workshop-bill-splitter/6977a4306bb3e856690a4890.md b/curriculum/challenges/english/blocks/workshop-bill-splitter/6977a4306bb3e856690a4890.md index f60c3c9123a..17fe4c42efa 100644 --- a/curriculum/challenges/english/blocks/workshop-bill-splitter/6977a4306bb3e856690a4890.md +++ b/curriculum/challenges/english/blocks/workshop-bill-splitter/6977a4306bb3e856690a4890.md @@ -9,8 +9,6 @@ dashedName: step-6 Now that you have calculated the tip, you need to add it to your `running_total` to find the final bill amount. -In Python, you can use the augmented assignment operator `+=` to add a value to a variable and update that variable at the same time. For example, `total += 5` is a shorthand way of writing `total = total + 5`. - Use the `+=` operator to add the value of `tip` to your `running_total`. Finally, use `print()` to display the string `Total with tip:` followed by a space and the value of `running_total`. # --hints-- diff --git a/curriculum/challenges/english/blocks/workshop-bill-splitter/697a7f71ebfcd9e4cacd69c2.md b/curriculum/challenges/english/blocks/workshop-bill-splitter/697a7f71ebfcd9e4cacd69c2.md index 534f0eb805d..4088b69352b 100644 --- a/curriculum/challenges/english/blocks/workshop-bill-splitter/697a7f71ebfcd9e4cacd69c2.md +++ b/curriculum/challenges/english/blocks/workshop-bill-splitter/697a7f71ebfcd9e4cacd69c2.md @@ -9,7 +9,7 @@ dashedName: step-8 The bill is split, but division often results in long decimal numbers. Since money is typically represented with two decimal places, you should round the final result. -Python provides a built-in `round()` function for this. It takes two arguments: the number you want to round and the number of decimal places to keep. Here's an example: +In an earlier lesson, you learned about the `round()` function which takes two arguments: the number you want to round and the number of decimal places to keep. Here's an example: ```py num = 4.815162342 diff --git a/curriculum/challenges/english/blocks/workshop-bill-splitter/6982684f3a25f379e195a5fc.md b/curriculum/challenges/english/blocks/workshop-bill-splitter/6982684f3a25f379e195a5fc.md index c9321f9371d..bffcac50bc0 100644 --- a/curriculum/challenges/english/blocks/workshop-bill-splitter/6982684f3a25f379e195a5fc.md +++ b/curriculum/challenges/english/blocks/workshop-bill-splitter/6982684f3a25f379e195a5fc.md @@ -7,9 +7,9 @@ dashedName: step-4 # --description-- -Now that you have stored the individual costs, you can calculate the total. In Python, you use the addition operator `+` to sum values together. +Now that you have stored the individual costs, you can calculate the total. -The `+=` operator adds a value to an existing variable and updates it at the same time. For example: +Recall that the `+=` operator adds a value to an existing variable and updates it at the same time. For example: ```py total = 10