Back to articles
I have never written a line of Python in my life. And yet, this week I built my first Python project. 🐍

I have never written a line of Python in my life. And yet, this week I built my first Python project. 🐍

via Dev.to PythonLeanne R

I've kept a reading journal on GitHub for years πŸ“š (223 books and counting, here if anyone is interested, though I doubt it). Every time I finished a book, I was manually updating the file. Tedious, and I usually forgot to update the book count. So I asked Claude if we could automate it. First we talked through what I actually wanted. Then what language to use (Python, apparently 🐍). Then whether I needed to install Python (yes ⬇️). Then what a token was and whether it was safe πŸ”. Then why my terminal said python3 instead of python (totally normal, good to know). Then why there was an extra blank line above the new entry 🧐. Every step, I asked questions. I learned to do things I hadn't done before: Add Python to my machine Generate a fine-grained Github access token and use it in a script Now I run one line in my terminal with my book entry, and the script: Automatically numbers the entry Adds it to the right year Updates my total count Opens the repo in my browser. Done. βœ… My first Pyt

Continue reading on Dev.to Python

Opens in a new tab

Read Full Article
2 views

Related Articles