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