Python Code Challenges (Optional)

This is my very first topic, so please be kind as this is all very very new to me. There are many (in my opinion way too many) guides as to how a topic should be raised and what not. Also, the library of topics is so big it’s even harder to find what one is looking for. Frankly, I’m extremely frustrated and just want to throw this one out before I forget the whole point of posting the topic.

Either how, as the title suggests, it relates to Python Code Challenges (Optional). See the link below (unsure if I did it correctly).

Learn Python 3 | Codecademy

Basically, I’ve enrolled to the beginners course of Python 3 and reached almost halfway. How do I even put this into words? The Python Code Challenge (Optional) is something I had to drop and reset its progress. Why? Because I found myself viewing the solutions instead of coming up with the right coding from the start. I’m starting to doubt myself. Have I even grasped the knowledge acquired from completing the prior modules from the course syllabus?

Back on track. These challenges are optional. When stuck, how can it be tackled in the right way though? Surely, viewing the solutions is a way. But shouldn’t the exercises prior to reaching this part of the course include more thorough explanation?

I have no programming history, background, luggage or how ever you want to call it and would like some pointers. So far, this is very very interesting and fun, but at the same time frustrating and head-breaking. All help and suggestions are much appreciated!

In re: your first point:
There are multiple topics here on the very same subjects b/c people usually forget to search before posting the exact same question. (which is why you see 50+ posts for anything related to “Thread Shed” or, “Sal’s shipping”, etc, etc. Many of these posts have answers and code snippets as well).
But, I digress.

This is a good place to start:


You’re going to get stuck (and really frustrated) when learning a new language and it’s entirely ok to look at a solution. That said, do you understand each piece of the code in the solution? Can you explain what the code is doing? Can you write it a different way and still pass? It takes practice and repetition. Don’t worry, it will come. Just keep at it…like you’re doing. Do you take notes when you’re learning? Or, do you have a notebook open to write and execute the code? (like VS code or Jupyter or Colab)

In those Control Flow challenges, what is it specifically that you think isn’t explained well enough up to that point in the course?

The docs are helpful: