Posts

Grief and Acceptance

Image
I like what one YT Python lecturer says about "Knowing it All". You need to accept that you will NEVER know it all. You need to trust that the research tools you have used thus far to tackle problems will be there for you in the future to help you get through those unknown future obstacles. There are moments of grief when I think about my comparatively slow rate of progress (as an Old Man Learning to Code) and the fact that, indeed, I will never reach the mountain top. I will never know it all (that is, err, not only about Python, HTML, CSS, Javascript, VBA, AHK, Bash, GitHub, etc, but also about an infinite number of other things to be grasped in a lifetime). But there is no choice but to accept. I am finite. My brain is finite and small. I just need to humble myself and accept. So getting back to the goal of this blog: Keeping a log of my progress and set backs in learning to code. Today's problem is nested functions; that is, function calls inside of other fu...

Advanced Python Links Accumulation Page

Image
  I 'm still at journey's start (a Python beginner) with miles to go before I reach the foothills leading to the mountain top. Along the way, I keep stumbling across more advanced tutorials that --one day-- I should go back to and learn from. Like these ones for example:  (p.s. music to chill to here ) (1) Google search results for "advanced python tutorials" (videos) ==> ( here ) and more specifically in the following links: (2.0)  ArjanCodes -- Playlist --Software Design in Python     ---^^^--  The Ultimate Guide to Writing Functions     ---^^^--  Clean Python Code with the Registry Design Pattern     ---^^^--  Cleaner coding--(31) ALL videos Python (3.0)  Data Science For Everyone (DS4e) --- (30) All videos (Python plus)     ---^^^--  Python Functions Explained in 20 Minutes Computer Engineering Jitty -- (30) Dictionaries and Dictionary Methods (4.0) Dave Ebbelaar --- Latest Videos (Machine Lea...

Pausing to Glance Back at My Own Slow Progress Up the Left Side of the Exponential Learning Curve

Image
 I t's not uncommon to see a newbie complaining on Reddit ( see example here ) about the "frustrating feeling" of making essentially no progress in learning Python. If I volunteer an encouraging response post for that newbie, it will often include a spiel about climbing along the left side of the grph of an exponential function where the slope is near zero, but nonetheless positive, and thus they are making progress. I tell them that one day they will advance much closer to the right side of the curve, cross the x=0 marker, and then their wings will unfold; they will soar into the stratosphere. The promised payoff will come. Just have faith and keep going. Don't give up when you hit a valley of despair. So what about me? Have I made any progress? Is some form of payoff finally showing up for me? (I'm still a relative newbie myself with a long way to go. It's been a few months since I started learning Python. At first I was thrilled if I could make even the ...

Printing out the Sieve of Eratosthenes is the Harder Problem

Image
A s mentioned in the preceding post ( here ), you learn by doing. And especially by making mistakes! While working on understanding list comprehensions, it came to my mind that perhaps I could apply it to  The Sieve of Eratosthenes . I can't say that I figured out how to implement the Sieve with list comprehensions (at least not yet, but see below re my fatten() function ). What caught me by surprise was that even printing out the result on the console became an issue due to the length of the resulting list produced by the Sieve algorithm. As most math majors know,  the Sieve simply builds up a list of primes by trying to divide each successive candidate integer by all of the previously found primes. You create a seed list of primes, say [2, 3] and then you start stepping through further candidates, 4, 5, 6, 7, ... one at at a time. For example, 4 is divisible by the already known prime,2; so 4 fails as a valid candidate. 5 passes though and gets appended to the primes li...

You Learn by Doing

Image
  I had an entirely different vision of how my Learn and Review screen displays would look.   But over time, something else, something more workable emerged. More to the point, below is a screen capture of a practice session based on a Tech with Tim (TwT) tutorial on YouTube entitled, "10 Python Comprehensions You SHOULD Be Using" ( here ) It is but one of a number of practice sessions in a test Py file. So it gets an identifying frame ID (009 in this case). It gets a heading banner (Green box characters in this example) Each subsection gets its own ID, for example: (9a), (9a'), (9b), (9c), etc. Moreover, at subsection (9_), I insert in my own words, a summary of what I understand after having tried some to TwT's 10 lessons. While not shown in the below example, I also denote in later lessons, the time stamp for where the lesson occurs in TwT's tutorial. ( BTW, left click on below image to see it bigger )   Below is another screen grab showing the TwT time s...

Salvaged Tables

Image
I messed up my previous posting ( here ) which was supposed to be a Table full of relevant Tables. So we try again here. TABLE OF CONTENTS 1.  Python ESCAPE codes     ( Google ) ( G4G- how2 print ) ( GitHub/ANSI ) 2. SYMB[O]L Unicode table     Symbl Table of Sections: 0: Basic Multilingual Plane 1: Supplementary Multilingual Plane 2: Supplementary Ideographic Plane 3: Tertiary Ideographic Plane 4-13: Not Used 14: Supplementary Special-purpose Plane 15: Supplementary Private Use Area Plane – A 16: Supplementary Private Use Area Plane – B 3. GitHub Colorist COLOR codes 4. Python Morsels 5. Python Built-in Functions() 6. Python Built-in Object Types (1) Sample Table of Escape Sequences ( here ): Escape Sequence Meaning Notes \ <newline> Backslash and newline ignored (1) \\ Backslash ( \ ) \' Single quote ( ' ) \" Double quote ( " ) \a ASCII Bell (BEL) \b ASCII Backspace (BS) \f ASCII Formfeed (FF) \n ASCII Linefeed (LF) \r ASCII Carriage Return (CR) \t ...