For pure puppet language training I always used my puppet-debugger tool to give a interactive playground that provides the ability to learn the language in real time. Additionally, the
debug::break
function can break open into a coding session and see how everything works like pry for ruby does. For those that like to do instead of read without making a mess.