How can I tell where I went wrong in an exercise?


#1

Question

How can I tell where I went wrong in an exercise?

Answer

While you’re working here on Codecademy, your code is being tested in a custom-made environment that’s meant to give you meaningful hints about your code that might not appear elsewhere - like if you ran the same code on your computer.
Let’s take a look at the arbitrary example below:

# Set bool_one equal to the result of
# 10 ** 2 >= 100 ** .5 or False
bool_one = False

Codecademy would check your answer and see that it’s incorrect and give you a helpful error message like this: Double check your value for bool_one! in red at the bottom of the editor.
This one seems pretty straightforward, but keep an eye out in future lessons for lots of helpful error messages like this! They’ll prepare you for common errors when you’re on your own.


FAQ: Learn Python - Conditionals & Control Flow - Or
#4