Everybody should learn to code is one of the most retarded concepts in modern times.
To be a good programmer, you need what amounts to an innate ability to think in an abstract structured way. This is not taught in any school. It cannot be taught. People who have this skill often find programming to be enjoyable. People who do not have this skill will never be good programmers and will likely find programming to be confusing and frustrating.
The entire education system is pretty fucked up. People have innate abilities, whether in technical or intellectual skills like programming, math or engineering, or in music, language, sports, etc. Education should be about discovering what you are innately predisposed to and practicing that to the benefit of a coherent society. Instead, it is assumed (falsely) that everyone can learn to do everything equally well. A failing that follows from the false premise of tabula rasa that permeates leftist thinking of educators.