my solution to Think Python, exercise 3.1

I’m going through Think Python, by Allen Downey, for the time being, likely until classes begin for me at the end of the month.

Thank you, Dr. Downey, for making it available free online.

3-17-2021 Update: I’m finding I prefer aspects of the version of the document headed by Peter Wentworth, How to Think Like a Computer Scientist: Learning with Python 3, compared to Downey. The Wentworth version has more thorough explanations and examples.

Continue reading my solution to Think Python, exercise 3.1

Activating the Virtual Environment

I am just beginning Project 3 – Web Applications in Eric Matthes’ Python Crash Course, 2nd ed. I hit some snags to solve at the very start, first getting the directory set up in the command prompt terminal, then activating the “virtual environment” in that directory.
Continue reading Activating the Virtual Environment

Better Stars solution

I’m going through Python Crash Course, 2nd edition, by Eric Matthes.

He posts solutions for “Try It Yourself” questions for all chapters except 12, 13, and 14, which cover his Alien Invasion project. This is the solution I came up with for 13-2. Better Stars, on p. 264.

This post will likely only make sense to people also working through the problem sets in the book.
Continue reading Better Stars solution

Establishing the Python Path in Windows

In my quest to learn Python, I hit upon an early snag of not being able to access it in the command window / Powershell of my Windows 10 system.

I had downloaded Python 3.9.0 from; during the installation process I made sure the option to establish a “PATH” was checked. Per various sources in my internet search, this should have been enough to avoid this particular issue.

Nonetheless, post-installation, when I entered “python” after the prompt in the command window, I was informed that “python” was not recognized.

My search on the internet gave me a partial solution, which was to add a “path” in Environment Variables.
Continue reading Establishing the Python Path in Windows