Harvard University · on edX

CS50's Introduction to Artificial Intelligence with Python

Beginner 70 hours English University CertificateFREE
SkillsArtificial intelligenceSearch algorithmsMachine learningOptimisationNeural networksPythonLarge language models

Is this course right for you?

Our take
Worth it if you already program in Python and want to understand how AI actually works, not just how to prompt it. It is free to audit from Harvard.

Good for: people who already know some Python and want to understand how AI techniques work.

Skip if: you cannot yet program, or you want deep mathematical theory.

You build the ideas yourself — search, logic, probability, machine learning, neural nets — implementing each in your own Python, which is what makes them stick. With over 1.6 million learners and Malan and Yu teaching, it is a well-regarded free AI course, and the project-driven format is a big part of why.

It is not a true beginner course despite the 'introductory' label: it expects prior Python from CS50x or equivalent, and it will not go as deep into the mathematical theory as a graduate course. If you cannot yet program, start with CS50x or CS50P first. It is free to audit with an optional paid HarvardX certificate, and the CS50 team keeps it current (as of 2026).

Comparison · LBS

Compare alternatives for CS50's Introduction to Artificial Intelligence with Python

Same topic, different options. We surface the trade-offs others hide so you can pick the course that actually fits your time, budget, and goals.
edX
CS50's Introduction to Artificial Intelligence with Python
Price
Free
Audit free · HarvardX certificate available (paid)
Duration
70 hrs
Level
Beginner
Certificate
University Certificate
Google4.7(8,500)
Machine Learning Crash Course
Price
Free
Completely free, self-paced
Duration
15 hrs
Level
Beginner
Certificate
freeCodeCamp4.7(5,800)
Machine Learning with Python Certification
Price
Free
Completely free, forever
Duration
300 hrs
Level
Intermediate
Certificate
Course Certificate
edX
PyTorch Basics for Machine Learning
Price
Free
Audit free · paid verified certificate
Duration
15 hrs
Level
Beginner
Certificate
Course Certificate
Prices & availability can change — confirm on the provider's site. We're not affiliated with any single provider.

About this course

CS50's Introduction to Artificial Intelligence with Python is HarvardX's deep dive into the ideas that power modern AI. Over seven self-paced weeks you work through graph and adversarial search, knowledge representation and logical inference, probability and Bayesian networks, optimization and constraint satisfaction, machine learning, reinforcement learning, neural networks and natural language processing — implementing each in your own Python programs through hands-on projects.

Instructor

DJ
David J. Malan
edX instructor

Taught by David J. Malan, Gordon McKay Professor of the Practice of Computer Science at Harvard, and Brian Yu, a Senior Preceptor in Computer Science at Harvard.

Frequently asked questions

You need to be able to program in Python comfortably, so CS50P — or equivalent Python experience — is the sensible starting point. This isn't a first coding course; it assumes you can already write Python and spends its time on the AI ideas rather than the basics of programming.

More than most CS50 courses. It leans on probability and some of the maths behind search, optimisation and machine learning. Nothing goes beyond what it explains, but if maths makes you uneasy, expect the concepts — not the coding — to be the part that stretches you.

Yes, if you want to understand how AI works rather than only use it. Using ChatGPT is effortless; this teaches the mechanics underneath — search, knowledge, probability, neural networks, and now large language models — so you grasp what's actually happening. It's for people who want to build or genuinely understand AI, not just prompt it.
Free
to audit
Enroll now