Harvard CS50
Generative AI
Intermediate
Certificate

Free course on Harvard CS50

CS50's Introduction to Artificial Intelligence with Python

30 hoursFree

Reviewed by the FreeCodingCourses.com editorsLast reviewed: How we review

At a glance

Level
Intermediate
Hours
30
Cost
Free

Certificate available on completion.

Open Course Premium version

You can take CS50's Introduction to Artificial Intelligence with Python two ways, both free. The official Harvard path is at cs50.harvard.edu/ai, where every lecture, project, and the source code sit online with no login and no payment. The other path is edX, which hosts the same course and adds an optional verified certificate if you want proof of completion. Our 'Go deeper' button points to the edX listing. Some links are affiliate links and may earn us a commission. It never affects our picks or ratings. Pick Harvard's site if you just want to learn, or edX if you want the certificate. Finish CS50's Python course or have a year of Python behind you first, because this one moves fast.

CS50's flagship intro course has been taken by nearly 5 million people, and this AI follow-up comes from the same Harvard team (source: Fortune Education, fortune.com/education).

Editor’s take

Best for
Programmers who have finished CS50x or have about a year of Python, and want to see search, probability and machine learning in their own code rather than through a library tutorial.
What you will be able to build
Twelve projects over seven weeks: Degrees (degrees of separation between actors), Tic-Tac-Toe, Knights, Minesweeper, PageRank, Heredity, Crossword, Shopping, Nim, Traffic, Parser and Attention. Traffic trains a neural network that identifies road signs in photographs.
The hardest part
Traffic, in the Neural Networks week. It uses TensorFlow, and the course pins Python 3.12 partly because of that project. The free certificate also wants 70% on every project, so you cannot skip the awkward ones.
What to take next
If Traffic left you wanting to train real models, fast.ai's Practical Deep Learning for Coders is the obvious follow-on. Practical Deep Learning for Coders →

Written from the course’s own syllabus and our review criteria.

About This Course

Harvard's introduction to AI with Python. Covers search, knowledge representation, uncertainty, optimisation, machine learning, neural networks, and NLP.

Course Details

Platform
Harvard CS50
Duration
30h
Certificate
Yes, included
Cost
Free
All Courses

Frequently Asked Questions

Is CS50's AI course free?

Yes. It's free on cs50.harvard.edu/ai and free to audit on edX. Only the edX verified certificate costs money.

What's the difference between the Harvard site and edX?

Same lectures and projects on both. edX adds a verified certificate, progress tracking, and a graded track; Harvard's own site is fully open with no account.

Do I need to know Python before starting?

Yes. It assumes you're comfortable with Python. Finish CS50P (Introduction to Programming with Python) or have about a year of Python experience first.

What does the AI course cover?

Search algorithms, knowledge representation, probability, optimization, machine learning, neural networks, and language processing, with a hands-on project in each area.

Do you earn anything from the edX link?

It can. Some links are affiliate links and may earn us a commission. It never affects our picks or ratings. The course content is identical either way.

More Generative AI Courses

Generative AIIntermediate

Hugging Face LLM Course

Learn to build and deploy with transformers and large language models in this 12-chapter course from Hugging Face. You'll start with NLP fundamentals, then move into modern LLM techniques: tokenization, fine-tuning, reasoning models, and building shareable demos. By the end, you'll know how to use pre-trained models, customize them on your own data, and integrate them into real applications. Best if you have some Python experience; the course assumes basic familiarity with machine learning. Fair warning: LLM chapters move fast, so budget time for rereading.