Just ask.

"Do you want to learn how to program a computer?" was all it took for my nephew (9) to start.