Computer science and artificial intelligence education are expanding globally, yet many African countries remain constrained by limited infrastructure, despite growing policy momentum, according to Stanford University’s 2025 AI Index report.
The report finds that two-thirds of countries now offer or plan to introduce computer science (CS) education in K–12
(kindergarten through 12th grade) schools , up from one-third in 2019. Africa and Latin America have made the most progress, with a notable increase in national strategies to integrate digital skills into primary and secondary education.
However, in many African nations, the pace of implementation is slowed by persistent gaps in electricity, internet access, and basic hardware. “Access remains limited in many African countries due to basic infrastructure gaps like electricity,” the report states, noting that rural schools are particularly affected.
Even where policies are in place, the absence of reliable power and internet connectivity has left many students without practical exposure to computing or AI. This threatens to widen the global skills gap as other regions accelerate their investments in digital education.
Meanwhile, in the United States, the challenge is less about access and more about readiness. The number of computing graduates has increased 22% over the past decade, and 81% of K–12 computer science teachers say AI should be part of foundational education. Yet fewer than half feel prepared to teach it, pointing to a growing need for professional development and updated curricula.
The report underscores that while there is a growing global consensus on the importance of computer science and AI literacy, access remains unequal. For Africa, the gap between policy and implementation could grow unless infrastructure investment is paired with teacher training and local curriculum development.
Stanford’s AI Index calls for coordinated national strategies that prioritize not just inclusion, but sustainable delivery. Without it, the promise of AI education will remain out of reach for millions of students across the continent.