In this post, I’ll share tips on how to create a 2D array and map it to a visual grid to depict it using Python. 2D arrays (or 2D lists as they’re called in Python) are fundamental to any programming language and tackling them requires understanding language-specific syntax, however, the core concepts are the same […]
Tag: education
Blackjack game (player vs. dealer: 1vCPU)
This is a one-player Blackjack game (playing against a non-human Dealer) simulating common rules of Casino Blackjack in the USA. The code is shared under the licensing term as listed. This is all Python 3.x code and has been tested on Windows although it should work on other platforms. It can also be made into […]
Geometric Shapes with Tkinter & Turtle
In this post, I’m sharing a complete Python program that draws various geometric shapes on screen with given parameters (e.g. side length, radius, height, tilt, etc.). The application is downloadable here and can be executed on a Windows device (tested on Windows 10). The download will be a ZIP file called tkinter-drawgeometricshapes.zip —copy or unzip […]
Murphy’s Law – Joking aside 😉
One of today’s most recognized physical laws is Murphy’s Law…one of the seeming fundamental laws of mankind: “If anything can go wrong, it will.” In this post, I discuss its brief history, and entertain the attempt of mathematically formulating his maxim in order to apply to some real-world sitations. The history: The adage or truism, […]
Mass and Energy – Explained Simply
In this blog, I explain in simple terms, the relationships between mass, weight, and ultimately energy as it relates to anything, including your own body mass, and how all of this can be tied to Einstein’s equation: E=MC^2. By the end of this post, you’ll be able to tell how much energy is stored within […]
Metaphysics, Harmony, Spirituality with Python
For many years, different sound frequencies have been believed and proven to have various effects on humans…in physical and mental aspects. From self-healing to spirituality; to vision and enlightenment, sound has been used (and continues to be) to aid meditation and therapy. Whether or not you believe in its benefits is beside the point of […]
Complementary post to: Pop Quiz [And Solutions With Low Code!]
This post is a continuation of or complementary post to about using Excel and SQL for pop-quizes. Please read that first to get proper context…otherwise, this wouldn’t make much sense. As discussed in the post linked above, the SQL queries can be saved from Microsoft Query Editor to an external file. It’s really convenient because […]
Pop Quiz [and Solutions with Low Code!]
Every now and then I see some simple quizzes pop-up on Facebook such as: “Name a state without letter A in it.” The letter can be another, they just switch it around from time to time. This particular post is inspired by such posts. Sure we can go through all the states in our heads […]
Carbon footprint estimation made easy
Indeed, “Climate change” has been the hot topic for the last couple of weeks. It even surpassed the hubbub around the pandemic the world is experiencing for the past 2 years and counting! Thanks to COP26…the gathering of the “relevant” world leaders to discuss top, pressing issues of the world, the list of which contains […]
Google honors the father of fiber optics
I found this out “accidentally” today (November 4th) while searching something on the Web, from Google.com landing page. This is what it looked like: As I looked at the binary numbers in their cartoony animation, I see they are:010010110100000101001111 which then translated to text, decimal, and hex are as follows: ASCII Decimal Hex 01001011 K […]