Try Balancing Robot Lab free in your browser, with nothing to install and no account. Program a two-wheeled robot with Blocks or Python and keep it standing. Left alone it falls over in under a second, so your program reads its tilt and drives the wheels toward the fall, a hundred times a second. Start by watching it fall, then drive toward the lean, then drive as hard as it leans, and see why a taller robot is easier to balance. The same idea, feedback, keeps Segways and hoverboards upright.