In my country, it is an obligatory class at the equivalent of the US middle school level (10-14 year old).
However, doing something as complicated as "computing and informatics" (a literal translation of the subject name) that early in the school education just made it absolutely terrible, much worse than the traditional classes were in my school.
I still excelled at it, mostly because of books (the Internet wasn't as widespread as it is today), and was a part of the state-sponsored small contests that test student's knowledge in that subject. Finished first on the municipality level, shared the second position on the regional level, and didn't go to the state level competition (was a bit too far away). That's what made me pursue IT further.
However, all I've ever learned during those four years was:
* Installing a pirated copy of Windows XP on desktops.
* "Blind typing" (typing properly on QWERTY keyboard without looking at the keyboard) and clicking on things in MS Office (2003) to make the document appear as in given screenshot.
* Mashing two malfunctioning desktops together to create a functioning one.
* Very basic programming (mostly if-else statements and loops). In QBASIC (from 1991). In 2008. (edit: This is what the competitions were about.)
My point being: You can still introduce it as an obligatory subject and fuck it up pretty badly. Including myself, two out of 120 kids in that school in my generation continued pursuing IT by joining specialized high schools (also a thing in my country) dedicated to IT. Neither me nor the second kid are female.
So, while I agree that it's a step in the right progress (the one which my country made in the second half of '00s, but fucked up pretty badly in its execution), it's far from being the final step. It brought us the equivalent of nothingness in spreading the IT. The IT is still associated as a "male field", regardless of the fact that the subject is obligatory for everyone in that age range for about 15 years.