Here is another humanoid robot that can teach you a thing or two about coding. The Hiwonder AI Vision Humanoid Robot is ready for Python programming. It is powered by Raspberry Pi 4B. It comes with smartphone and PC control. It is smart enough to recognize tags/colors and follow lines.
This robot uses a 2DOF wide angle camera. The above video shows how it can climb stairs.