Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect explanation and output for test case in T I Double Guh Er II in wiki and TIP102 course page #15

Open
jwinn19464 opened this issue Jan 27, 2025 · 0 comments

Comments

@jwinn19464
Copy link

jwinn19464 commented Jan 27, 2025

Problem:
T-I-Double Guh-Er: That spells Tigger! Write a function tiggerfy() that accepts a string word and returns a new string that removes any substrings t, i, gg, and er from word. The function should be case insensitive.

The incorrect explanation in the wiki page, under the heading "U-nderstand"
"""
EDGE CASE
Input: Choir
Expected Output: Choir
Explanation: No specified substrings are present in Choir, so it remains unchanged.
"""
The correct output should be 'Chor' as the substring 'i' is present in the string and thus, should be removed. I also ran the solution code provided at the bottom of the page and the output was also 'Chor'.
The incorrect output is also shown in the TIP102 Advanced Problem Set Version 1 section in the Unit 1 Session 1 tab in courses.codepath.org.

Screenshots and links:
https://github.com/codepath/compsci_guides/wiki/T-I-Double-Guh-Er-II
Image

From the TIP102 course page:
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant