There is no better way to learn coding and electronics than building and programming your own robot. There are already plenty of kits that can help you get started faster. Take the PLEN2 Mini for instance: it is a cute little robot you can control from your smartphone. The robot has a 3D printable body and ships with servos and everything you need to put it together.
You can move the robot in all directions, control its arms, and interact with it from your mobile device.[where to find it]