I don't understand why my code isn't working, what can I do?

Getting stuck is part of the learning process, so don't get discouraged. Every great programmer has been confused at some point. Here are the basic steps you'll need to trouble-shoot code:

  • Re-read the instructions and make sure that you fully understand what each questions is asking.
  • Check you code for spelling mistakes, especially in any function or variable names.
  • Make sure you 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 trouble shoot 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.
  • Check out the "Q&A Forum" link that is at the bottom of the instructions column.  These forums allow you to read and submit conversations with other users who have had similar problems.  

If you have followed all of these steps and you are still stuck, we suggest reseting 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.

If you have a Codecademy Pro subscription, you can reach out to the advisors via the chat functionality.  If you are not a Pro user and are interested in learning more about it, you can do that here.

Was this article helpful?
1 out of 15 found this helpful
Have more questions? Submit one here

0 Comments

Article is closed for comments.