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
Improve instruction Step-12 of the Python case converter project. #54232
Comments
Team, need your suggestions if the description can be further improved. |
The instruction says to call the function, give it an input, and print the function output. I'm fine with clarifying instructions if needed, but we should be mindful about not feeding them the answer. That diminishes the learning experience. To me, the incorrect answer example points to a camper not understanding what a function return is more than unclear instructions. We can be more explicit about wrapping the function call inside the print to avoid campers creating variables for the return. Inside the `main()` function, replace `pass` with a `convert_to_snake_case()` call. Pass the string `'aLongAndComplexString'` as input to the function. Put the function call inside a `print()` function to print its output. I would prefer "argument" and "return value" but input and output are the same, so if that follows the style used throughout we should keep it. |
Describe the Issue
Some campers are confused whether the solution is a single line print statement or two separate statements.
Some forum queries can be viewed here
Affected Page
https://www.freecodecamp.org/learn/scientific-computing-with-python/learn-list-comprehension-by-building-a-case-converter-program/step-12
Your code
Some campers found the solution to be:
instead of:
Expected behavior
The updated instruction can be something like this:
Screenshots
No response
System
Additional context
No response
The text was updated successfully, but these errors were encountered: