Skip to main content
Data Science Wizardry Blog by Attila Vajda

You can learn anything.

It seems powerful to write ideas in code, so instead of writing an idea in English, one can write a line of code. Attempting to write an idea we might fail, and make a mistake, but this is when we learn and improve at expressing ideas in code. Just as trying to read the correct values of an analogue clock, we form a solution and try this solution. By struggling and making mistakes, we adjust our understanding of the seen image, and our solutions become more and more accurate. In the course of learning to read an analogue clock, we can find patterns and mathematical connections between values.

>>> print("\n".join(["".join(["*" for i in range(3)]) for j in range(3)]))
***
***
***

Now, how to modify this code, in order to represent stars with their corresponding coordinates?

Learning can feel frustrating. We can feel we are not making any progress, and it might make us think that we are not good at, and will never be good at, what we are trying to learn. Although deceptive, this is a healthy part of the learning process[^4]. In fact, we can learn anything with a growth mindset.

[^4]Huberman Lab Episode - How to Enhance Performance and Learning by Applying a Growth Mindset