From 522bd8650b010daa8d3eaca7c74b3a500b16f0a8 Mon Sep 17 00:00:00 2001 From: Keerti Krishna Sreenivas S <2300031039@kluniversity.in> Date: Tue, 31 Mar 2026 13:12:11 +0530 Subject: [PATCH] fix(curriculum): correct Challenge 229 truncate text instructions and Python hint (#66673) --- .../69a890af247de743333bd4d2.md | 2 +- .../69a890af247de743333bd4d2.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/curriculum/challenges/english/blocks/daily-coding-challenges-javascript/69a890af247de743333bd4d2.md b/curriculum/challenges/english/blocks/daily-coding-challenges-javascript/69a890af247de743333bd4d2.md index 675478fc3fa..5bdfd3e5564 100644 --- a/curriculum/challenges/english/blocks/daily-coding-challenges-javascript/69a890af247de743333bd4d2.md +++ b/curriculum/challenges/english/blocks/daily-coding-challenges-javascript/69a890af247de743333bd4d2.md @@ -24,7 +24,7 @@ The table above includes all upper and lower case letters. Additionally: - Periods (`"."`) have a width of 1 - If the given string is 50 units or less, return the string as-is, otherwise -- Truncate the string and add three periods at the end (`"..."`) so it's total width, including the three periods, is as close as possible to 60 units without going over. +- Truncate the string and add three periods at the end (`"..."`) so its total width, including the three periods, is as close as possible to 50 units without going over. # --hints-- diff --git a/curriculum/challenges/english/blocks/daily-coding-challenges-python/69a890af247de743333bd4d2.md b/curriculum/challenges/english/blocks/daily-coding-challenges-python/69a890af247de743333bd4d2.md index c3e71ec20d3..8980486f223 100644 --- a/curriculum/challenges/english/blocks/daily-coding-challenges-python/69a890af247de743333bd4d2.md +++ b/curriculum/challenges/english/blocks/daily-coding-challenges-python/69a890af247de743333bd4d2.md @@ -24,7 +24,7 @@ The table above includes all upper and lower case letters. Additionally: - Periods (`"."`) have a width of 1 - If the given string is 50 units or less, return the string as-is, otherwise -- Truncate the string and add three periods at the end (`"..."`) so it's total width, including the three periods, is as close as possible to 60 units without going over. +- Truncate the string and add three periods at the end (`"..."`) so its total width, including the three periods, is as close as possible to 50 units without going over. # --hints-- @@ -37,12 +37,12 @@ TestCase().assertEqual(truncate_text("The quick brown fox"), "The quick brown f. }}) ``` -`truncate_text("The silky smooth sloth")` should return `truncate_text("The silky smooth sloth")`. +`truncate_text("The silky smooth sloth")` should return `"The silky smooth s..."`. ```js ({test: () => { runPython(` from unittest import TestCase -TestCase().assertEqual(truncate_text("The silky smooth sloth"), truncate_text("The silky smooth sloth"))`) +TestCase().assertEqual(truncate_text("The silky smooth sloth"), "The silky smooth s...")`) }}) ```