Keep Going Despite the Click Baits
If you read yesterday's post (here), you probably thought this Old Man (who is supposedly devoting time to learning to code) is starting to fall for all that click bait floating about on the internet. (Or as some may call it, propaganda.)
No. I'm not. Not fully that is. I understand the game.
Everyone is trying to make the internet their side hustle . Each thinks they will get 8+ billion clicks (current population of Planet Earth). Multiply that by whatever Google ad sense pays per click and it will make you fabulously rich.
But that is not why I'm posting here, out in the open. Instead this is merely my public journal. I also have a private Obsidian journal (More re Ob Journaling is here) (BTW, Make-a-Meme web site is a fun diversion for creating my right side images here.)
So where am I in terms of learning Python?
At this point I have a bunch of parallel projects. And yes, I'm committing them to GitHub. Not yet a maven in version control technology (VCS), but starting to comprehend parts of it.
One of my projects is directed to reviewing various string (str) methods. (View cheat sheet here.)
Another is is directed to reviewing various list processing methods. (View cheat sheet here.)
In the latter project (Learn_Lists.py), I copied some code from Indently's tutorial:
The above dumps out a list of 48 methods directed to the "list" object.
Then, I run and print out an exercise with each of the non-Dunder methods, like this for example:
One thing I neglected to do was to understand what the dir() function does in Indently's code.
So doing that here in my public journal. Below copied from W3 Schools:
Definition and Usage
The dir() function returns all properties and methods of the specified object, without the values.
This function will return all the properties and methods, even built-in properties which are default for all object.
Oh. OK. I just learned something new. (New to me, not to the rest of the world)
.. TO BE CONTINUED
Note to myself: You already found a solution to posting code in Blogger !!!
How to add code snippets in blogger posts
More to Explore
Am I Too Old to Learn How to Code at 40 ? (Learn by Doing)
[Ai is] The Future of Software Development (2025 & Beyond)
Keep Going, Stay Motivated
Don't Watch Endless Tutorials ... Learn by Doing Instead
Comments
Post a Comment