Python is full of surprises that make programming fun and extremely efficient, on your desktop, laptop, or even using today’s latest calculators.

When I first started learning Python it took me a while to discover the zip() function. Of course that’s the nature of Python; there’s always something new to…


People are dying from the heat; knowing the wet bulb temperature just might help save a life. A short Python program lets you easily calculate this number.

A hot desert might be safer than a humid suburb!

The news recently has been full of stories about wet bulb temperature, and how this measurement is important when it comes to keeping…


They won’t tell us everything, but we can take action for ourselves to learn what’s up.

You’ve probably seen several of the “tic-tac” videos and heard the commentary on the UAP encounters by Navy personnel; this article will not inundate you with more of those. They are all part of…


Yes, Lewis & Clark really did take a side trip to investigate some possible ETs.

Lewis & Clark investigated possible extraterrestrials

A very interesting story about possible extraterrestrials is found in archived Government journals written up by Lewis & Clark in 1804. They took a side trip to check out possible ETs residing on a very…


Python’s mpmath module is a powerful tool for high accuracy calculation that you should know

You likely know that integers in Python can grow to any reasonable size. For example, here’s a short Python program that starts with 1 and multiplies by 256 with each step. …


A new algorithm for customizable, fast pseudorandom bytes that passes the tests with flying colors.

Randomness is too important to leave to chance. Donald Knuth said that, and it’s a good mantra for programmers to adhere to. …


Most roofs do surprisingly well, even if they are not aimed south, or their pitch isn’t ideal. Here’s a short Python program to easily analyze any roof.

There’s a lot of misinformation, and disinformation about how well homeowner’s roofs will work with solar panels. …


Here’s a concise Python program you can use to calculate the Sun’s position to 0.01 degree accuracy.

Here’s my favorite solar joke… “I stayed up all night trying to figure out where the Sun went. It finally dawned on me.”

Seriously though, knowing where the Sun is at in the…


At least some of what NASA has shown us is bogus. Can we use Python to set things right?

Conspiracy theories are actually okay. However, buying into them outright is for the weak minded, and rejecting them offhand is for the closed minded. Hard facts, strong evidence, good research, and…


Make a date with this short educational Python program!

Yes, this is all about a dating program, but no, it’s probably not what you think. It’s still a lot of fun though! (And the results can be quite useful.)

Python and the KISS Principle

Python is an amazing programming language, perfect for students and beginners…

John Clark Craig

Author, inventor, entrepreneur — passionate about alternate energy, technology, and how Python programming can help you hack your life.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store