Sorry, that's simply not true.
Whilst it would be lovely to imagine all humans are clones and all have the exact same abilities, I can assure you that's simply not the case, and I'm sure as science regarding the brain continues it will be physically proven also.
Can anyone learn to code? If you are of the right age then yes sure.
Can we all learn to code up to a certain level that matches our abilities yes.
Are those levels of ability the same for everyone? No of course not.
That's like saying everyone can be a grand master at chess if they only tried a bit.
I can assure you, there is no way my maths or mental ability is anywhere near the level of being an "Amazing Coder"
Have I "Coded" yes, have I sold some things I wrote? yes, did I get some nice comments and my programs printed in a magazine, back in the 8-bit days yes.
But I'm under no illusion, there are millions? of coders that could without even breaking into a sweat and probably blindfolded would run rings around anything I could ever dream of doing?
However, I can do most jobs around the house and put my hands to most physical tasks.
Sad truth is, everyone is different, we all have different skills and our brains are laid out in different ways.
Some of us as simply more academically clever and pick things up and remember then vastly better than others.
Should we encourage people to be the best at what THEY as humans are really good at, as opposed to pretending everyone can be great at everything.
What are you going on about? I said anyone who wants to and puts in the effort can learn to code. I didn’t say they’d all be “grand masters.” I didn’t say they’d all be amazing coders. (Whatever that is supposed to mean).
The essence of coding is learning to define a problem and then learning how to break down the solution into discrete and manageable steps. Some folks will go well beyond that - people with mathematical inclinations may discover some new sort algorithm or a new compression algorithm that’s better than the old ones. But anyone can learn the difference between an O(n) solution and an NP-complete problem, given time and effort, and can write functional code to solve real problems. I’ve yet to meet a third grade girl who didn’t pick it up pretty quick and write real code. The kids I teach are capable of writing actual Swift code for things like playing hangman or mad-libs. Just because they can’t yet write their own OS kernel doesn’t mean that what they are doing isn’t coding.
If you are capable of reading and writing a human language, and if you are capable of understanding algebra and geometry, you can doubtless write actual code that performs useful functions if you take the time to learn how.