How Many Water Bottles Could a Filling Station Save?

Filling a water bottle at a public fountain is a pain. It never fits, so you have to tilt your bottle sideways—which makes it even harder to get the water into the narrow mouth. But there are new fixtures that solve this problem; you might have seen them in office...

Do LEDs Cause Orange Presidents?

Remember incandescent lights? They’ve largely been phased out because of their horrendously low efficiency—less than 5 percent. Incandescent bulbs are classified by how much electrical power they use, like 60 watts or 100 watts. But most of that power is turned into...

Mandalorian vs. TIE Fighter: Who Would Win?

In the season finale of The Mandalorian, a TIE fighter, piloted by Moff Gideon himself, is coming in to destroy Mando and his friends. The situation is dire. So what does Mando do? He straps on a jetpack and rockets up over the TIE fighter—then uses his grappling hook...

How to Make a Tree With Fractals

Anway, the thing to notice here is how it works: I created a function called “pfact” to perform the operations, and the definition of the function actually calls itself (in line 11 ). That’s recursion. By creating that nested structure, we can do elaborate...