Getting stuck is part of the learning process, so don't feel discouraged! Every great programmer has been confused at some point. Here are the basic steps you'll need to troubleshoot code:
- Re-read the instructions and make sure that you fully understand what each question is asking.
- Check your code for spelling mistakes, especially in any function or variable names.
- Make sure your code is indented correctly and cleanly. Some languages, like Python, require specific indentation. Other languages don't require it but are much easier to read and troubleshoot when they are organized. You can read more on that here.
- Read the "Hints" section, which can be found at the bottom of the instructions on the left of the page.
- Take a peek at our Articles page for a more in-depth description of certain concepts and terms.
- Check out the Codecademy Community! Our new platform, powered by Circle, is designed to offer a seamless and engaging experience, bringing everyone together in one place. It’s your go-to space to collaborate on projects, attend events, ask coding questions, and more!
If you have followed all of these steps and you are still stuck, try resetting the exercise and writing your code over again. This can seem frustrating at first, but you will often fix the mistake that is causing your issue by writing your code over again. You can always click "Get the Solution" as well. We encourage you to review the solutions code to review where the error was occurring.
If you think a code error message is incorrect, please let us know! You can submit a bug within the learning environment by selecting Get Unstuck at the top of your screen. From there, select Bugs and report the issue. *Please note that these are sent directly to our Curriculum Quality team for review but this team will not respond back directly when the bug is fixed or if they determine it is not a bug.