All Courses
Harvard CS50
python
Beginner
Certificate

CS50's Introduction to Programming with Python

36 hours
4.9(8,900 reviews)
Free

CS50's Introduction to Programming with Python (often called CS50P) is free on two paths. Harvard publishes the whole course at cs50.harvard.edu/python, with lectures, problem sets, and solutions open to anyone, no account needed. edX hosts the same material and adds an optional verified certificate. Our 'Go deeper' button sends you to the edX listing, and we earn nothing from it: we are not in edX's affiliate program. Finish it and you can write real Python programs from the command line, with functions, file handling, exception handling, unit tests, and regular expressions: the same building blocks CS50x teaches, but slower and Python-only. Take it if you're starting from zero and want Python without the detour through C. Skip it if you already know Python basics, because CS50x's wider sweep across C, SQL, and the web will give you more. One honest limitation: CS50P stays in the terminal from the first lecture to the last. It never touches web frameworks or Django, so if web development is the goal, plan on CS50W or a framework course after it instead of treating this as the whole path. Use Harvard's site to learn for free, or use edX if you want the certificate for employers.

CS50P is one of the newer courses in Harvard's CS50 family, which has drawn nearly 5 million learners overall (source: Fortune Education, fortune.com/education).

About This Course

Harvard's introduction to programming using Python. Covers functions, variables, conditionals, loops, exceptions, libraries, unit tests, file I/O, and regular expressions.

Course Details

Platform

Harvard CS50

Language

python

Level

beginner

Duration

36h

Certificate

Yes, included

Cost

Free

Frequently Asked Questions

Is CS50P free?

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

What's the difference between CS50P and CS50x?

CS50x is the broad intro (C, Python, SQL, web). CS50P focuses only on Python and is easier for absolute beginners who specifically want Python.

Do I need programming experience for CS50P?

No. It starts from zero, covering functions, variables, loops, exceptions, libraries, file handling, unit tests, and regular expressions.

Harvard's site or edX, which should I use?

Same content on both. Harvard's site is fully open with no account; edX adds a certificate and a graded track.

Do you make money if I use the 'Go deeper' link?

No. We are not in edX's affiliate program, so that link earns us nothing. You can always use the free Harvard site instead.

More python Courses

Codecademy's interactive Python course teaches you the basics from scratch. Write and run code in your browser, learn syntax, functions, control flow, lists, loops, and more.

25h
4.6
Details

Khan Academy's friendly introduction to programming with Python. Learn variables, data types, functions, conditionals, and loops through short lessons with immediate feedback.

15h
4.5
Details

Harvard's legendary CS50 introduction to computer science. Covers C, Python, SQL, JavaScript, and web programming. The most-enrolled university course in the world.

100h
4.9
Details