When I started in this field, I began by learning to use some apps, then progressed to learning a single programming language, then another, then about assembly and binary, then about logic gates and then about transistors.
The reason for a talent shortage in tech has more to do with children's education than anything else. I remember giving a talk in front of about 600 developers and asking them, "How many of you chose this field because you were inspired by a teacher at your school?". I'd say about three hands went up. I think if I had been talking at a literature conference, a medical conference or an archaeological conference, there would have been far more hands raised in the air.
The majority of successful developers that I know are self-taught. Even those with CS or SE degrees acknowledge that the skills that got them hired were self-taught. There could be thousands of potentially amazing developers out there that will never know their potential because they either never experienced being taught CS at school, or it was taught badly.
Early years education is important. We should be introducing the subject as early as we introduce English, Math, Science, History, etc. We've all done history projects on the Romans, or Geography projects on volcanoes, when we were six or seven, why not do projects on Turing machines at the same age? Kids should be programming (Scratch) as soon as they can use a mouse and a keyboard.
Unfortunately we have a vicious circle. While there is a tech shortage, we'll have a shortage of tech competent teachers. You're simply not going to get the best of the best, entering the world of education, when there are more lucrative jobs in industry. If we really want to solve the shortage of talent, CS teachers need to be paid an industry competitive salary, and then we need to wait twenty years for the products of their teaching to enter the market place