A Pythagorean-like theorem for tetrahedra, and its generalization to higher dimensions. Illustrated with Python code.| John D. Cook