My Notes on Learning Python
I have been learning Python in the evenings for a few months now. I am not an expert, but a few habits finally stuck, and I wanted to write them down before I forget them.
First, short daily practice beat long weekend sessions. Twenty minutes a day, most days, got me further than three hours once a week. The concepts had time to settle between sessions.
Second, I stopped copying code I did not understand. If a snippet worked but I could not explain why, I rewrote it in smaller pieces until I could. It was slower, but the understanding stayed.
Third, I kept a notebook of errors. Every time I got stuck for more than half an hour, I wrote down the error, what I tried, and what finally fixed it. Most of my later problems were repeats of earlier ones.
My next small project is a script to organise the photos on my phone by date. Nothing fancy — just enough to be useful, and a good excuse to keep practising.