I am a huge proponent of learning to code as early as possible, and I think the best and most accessible way to start is through a calculator!
These are all of the programs that have some amount of value that I wrote on my TI-84+ over the years.