There are plenty of robot kits that can teach you the basics of coding with a drag & drop interactive. The Hiwonder ArmPi is made for more advanced users. It is a Raspberry Pi 4B robotic arm with machine vision and Python code. It can detect colors and stack blocks intelligently.
The ArmPi works with iOS and Android devices. It has a metal base with vacuum suction cups to stay put. It also comes with a Pi expansion board for more advanced projects. More info is available here.