Feeling Lost under Iterables part in Python 3

Currently done with the project called ‘New teacher in town’, which got me super worried since i couldnt solve it on my own at all.
I am truly trying to grasp everything, and was able to solve all past ones on my own, however this one did make my life much harder even though prior to the project i felt like i really understood everything and was ready to tackle the project. Any tips on how to overcome such moments, or how to be better prepared?

Hello @mergberg, welcome to the forums!
It is difficult when you suddenly hit an obstacle that you haven’t experience before, but remember that everyone who learns to program faces this (and often more than once)! If you’re uncomfortable with the content, I’d suggest going back through the lessons until you’re comfortable with it, and with explaining it. Once you think you’re comfortable, you should try to write out all of the relevant concepts (e.g. lists, generators, etc), and write a description, as though you were writing a lesson. Doing so will really make sure you understand everything (and it will highlight anything that you don’t—which means you can go and study that bit again!) It’s important to keep going, and to remember that everyone has moments where it takes a while for something to click, so don’t get disheartened!
Make sure you’re making good use of language documentation, as well! There are many websites that exist (especially for Python) that cover more than just the syntax, but they explain how to implement or deal with certain programming principles (such as generators). Being able to effectively research how to do something is also a useful skill, so there’s never any harm in practising it!
Similarly, as projects get harder, it will become increasingly harder to do projects without planning them first—so get used to writing pseudocode. Pseudocode is essentially a way of writing up an algorithm in the (human) language you feel most comfortable using. That way you don’t have to worry about syntax, or getting your code correct; instead you can work on just developing the algorithm.

I hope this helps!

3 Likes