From b519b6231aae042cc434b40a9651d3ef3c83affb Mon Sep 17 00:00:00 2001 From: Jeevankumar S <110320697+Jeevankumar-s@users.noreply.github.com> Date: Fri, 6 Feb 2026 23:23:30 +0530 Subject: [PATCH] fix(curriculum): clarify Step 9 instructions for adding second print (#65744) --- .../694648acde178bb8202d9516.md | 26 -------- .../694648acde178bb8202d9517.md | 59 +++++++++++++++++++ .../blocks/workshop-report-card-printer.json | 3 +- 3 files changed, 61 insertions(+), 27 deletions(-) create mode 100644 curriculum/challenges/english/blocks/workshop-report-card-printer/694648acde178bb8202d9517.md diff --git a/curriculum/challenges/english/blocks/workshop-report-card-printer/694648acde178bb8202d9516.md b/curriculum/challenges/english/blocks/workshop-report-card-printer/694648acde178bb8202d9516.md index 730a1023897..db16a4cc063 100644 --- a/curriculum/challenges/english/blocks/workshop-report-card-printer/694648acde178bb8202d9516.md +++ b/curriculum/challenges/english/blocks/workshop-report-card-printer/694648acde178bb8202d9516.md @@ -11,8 +11,6 @@ The output is `False`, which shows that `score` is not an `int`. Another common kind of number in Python is `float`, which represents a number with decimals. Replace `int` with `float` in the existing `isinstance()` call to confirm this. -Finally, print `score` and its data type to complete the report card. - # --hints-- You should replace `int` with `float` in the existing `isinstance(score, int)` call. @@ -24,12 +22,6 @@ You should replace `int` with `float` in the existing `isinstance(score, int)` c `) }) ``` -You should print `score` and `type(score)` using a comma separator. - -```js -({ test: () => runPython(`assert _Node(_code).has_call("print(score, type(score))")`) }) -``` - # --seed-- ## --seed-contents-- @@ -47,24 +39,6 @@ print(age, type(age)) score = 80.5 --fcc-editable-region-- print(isinstance(score, int)) - --fcc-editable-region-- ``` - -# --solutions-- - -```py -name = 'Alice' -print(name, type(name)) - -is_student = True -print(is_student, type(is_student)) - -age = 20 -print(age, type(age)) - -score = 80.5 -print(isinstance(score, float)) -print(score, type(score)) -``` diff --git a/curriculum/challenges/english/blocks/workshop-report-card-printer/694648acde178bb8202d9517.md b/curriculum/challenges/english/blocks/workshop-report-card-printer/694648acde178bb8202d9517.md new file mode 100644 index 00000000000..2462722ba69 --- /dev/null +++ b/curriculum/challenges/english/blocks/workshop-report-card-printer/694648acde178bb8202d9517.md @@ -0,0 +1,59 @@ +--- +id: 694648acde178bb8202d9517 +title: Step 10 +challengeType: 20 +dashedName: step-10 +--- + +# --description-- + +The output is `True`, confirming that `score` is a `float`. + +Complete the report card by printing the `score` value along with its data type using a single `print()` statement. + +# --hints-- + +You should print `score` and `type(score)` using a comma separator. + +```js +({ test: () => runPython(`assert _Node(_code).has_call("print(score, type(score))")`) }) +``` + +# --seed-- + +## --seed-contents-- + +```py +name = 'Alice' +print(name, type(name)) + +is_student = True +print(is_student, type(is_student)) + +age = 20 +print(age, type(age)) + +score = 80.5 +print(isinstance(score, float)) +--fcc-editable-region-- + +--fcc-editable-region-- + +``` + +# --solutions-- + +```py +name = 'Alice' +print(name, type(name)) + +is_student = True +print(is_student, type(is_student)) + +age = 20 +print(age, type(age)) + +score = 80.5 +print(isinstance(score, float)) +print(score, type(score)) +``` diff --git a/curriculum/structure/blocks/workshop-report-card-printer.json b/curriculum/structure/blocks/workshop-report-card-printer.json index f693e057089..20345c3bbf7 100644 --- a/curriculum/structure/blocks/workshop-report-card-printer.json +++ b/curriculum/structure/blocks/workshop-report-card-printer.json @@ -13,7 +13,8 @@ { "id": "694648acde178bb8202d9513", "title": "Step 6" }, { "id": "694648acde178bb8202d9514", "title": "Step 7" }, { "id": "694648acde178bb8202d9515", "title": "Step 8" }, - { "id": "694648acde178bb8202d9516", "title": "Step 9" } + { "id": "694648acde178bb8202d9516", "title": "Step 9" }, + { "id": "694648acde178bb8202d9517", "title": "Step 10" } ], "blockLabel": "workshop", "usesMultifileEditor": true,