There is no better way to learn coding than building and programming your own robots. The Hiwonder ArmPi Robot is a Raspberry Pi 4B robotic arm with machine vision and Python code. It has a visual drag & drop interface and uses a high definition camera for machine vision.
The ArmPi can be controlled using a PC or phone app. It is capable of detecting colors and stacking objects. It comes with open source annotated code for more advanced users. The ArmPi has 5 degrees of freedom and has an expansion board for Raspberry Pi.[HT]