This video provides an introduction to Ruby scripting with the Ruby Code Editor extension in SketchUp. Scripting in SketchUp is also a good “intro to coding” exercise because you not only learn a usable scripting language (Ruby), you can even use it to create 3D models that you can manufacture (e.g. 3D print) afterwards.
This is a free sample instructional video from the book “Architectural Design with SketchUp: 3D Modeling, Extensions, BIM, Rendering, Making, and Scripting” (2nd Edition). I discuss this topic more in detail in that book’s Chapter 7.
Want more of these videos? If you own the book, use the password from the inside cover to gain access to all of my remaining videos on Wiley’s website: http://www.wiley.com/go/schreyer2e. If you don’t yet have your own copy, follow the links in the sidebar to get one. It is a great reference for SketchUp!