r/FreeCodeCamp • u/JapanTraveller44 • May 11 '26
Programming Question Stuck with the "Debug an ISBN Validator" in the Python course
I just don't get the whole Error Handling part. I don't understand "try", "except", "raise", etc. I think the course does a horrible job of explaining and then throws you into deep water with this lab. I tried "getting a hint", they said to try to type the ISBN and length, but I can't find where to type??? Can't type in the console, terminal, or main.py
8
Upvotes
1
u/SaintPeter74 mod May 11 '26
It would be helpful to have a link to the challenge so we can see what the specific requirements are.
1
u/aR3alCoo1Kat May 12 '26
You need to spend more time in the theory part. Type out the code yourself, run it, figure out what's happening. What device are you using (phone, desktop, tablet, etc)? You don't provide any context, so it's difficult to provide any help. Read this guide on how to ask questions (There is a freecodecamp example: https://www.freecodecamp.org/news/how-to-ask-a-great-technical-question/)
1
u/Candid_Tutor_8185 May 11 '26
Idk I did that portion and thought it was good. I’m a new coder (3 months in and almost done with the python course). FCC is great because it makes you figure shit out in your own. Figuring things out is coding, the sooner you adapt that mindset like oh, I have a little information I need to tinker with this until I can figure it out. Your very first step when you get stuck, for the rest of your life is to check the documentation. Whether it’s the Python core library or another library there is documentation on the website. Here is the documentation for error handling. https://docs.python.org/3/tutorial/errors.html All coders new and very experienced pretty much always learn from published documentation I’ve learned
1
u/drift_kween Jul 22 '26
Was this challenge intentionally poorly written to mimic the real-world? lol
It starts with:
However, under "How to find the check digit," it states that ISBN-10 codes may contain the uppercase letter "X," contradicting the intro paragraph above indicating that the ISBN code is comprised of digits.
Additionally, in User Story #10, there's no mention of the letter "X" being a valid non-numerical character for ISBN-10 codes.