Skip to content
Sabaqاردو

Harvard CS50's Introduction to Programming with Python

By freeCodeCamp.org

Course audio
Course audio: English
Level
Beginner
Length
11 lessons · 16 hours

What you'll be able to do

  • Write clean Python with functions, conditionals and loops
  • Test your code with unit tests and handle exceptions
  • Use regular expressions, files and third-party libraries
  • Design programs with classes and objects

About this course

David Malan's CS50P lectures from Harvard, published in full by freeCodeCamp and split into ten lectures. Each covers one idea in depth: functions and variables, conditionals, loops, exceptions, libraries, unit tests, file input and output, regular expressions and object-oriented programming, ending with a tour of further Python features. The lectures are long (about 16 hours in all) and best paired with the free CS50P problem sets on Harvard's own site. Ideal after a short first course, or as a rigorous first course if you have the time.

Syllabus

11 lessons · 15:57:48 in total

  1. 1Introduction4:48
  2. 2Lecture 0 - Functions, Variables1:45:36
  3. 3Lecture 1 - Conditionals55:59
  4. 4Lecture 2 - Loops1:20:47
  5. 5Lecture 3 - Exceptions44:35
  6. 6Lecture 4 - Libraries1:17:30
  7. 7Lecture 5 - Unit Tests51:07
  8. 8Lecture 6 - File I/O1:32:10
  9. 9Lecture 7 - Regular Expressions2:05:03
  10. 10Lecture 8 - Object-Oriented Programming2:51:12
  11. 11Lecture 9 - Et Cetera2:29:01

What to take next

Videos by freeCodeCamp.org, played from their official YouTube channel. Subscribe on YouTube

Official upload by the teacher or institution on their own channel, shown with YouTube's embedded player.

Lessons last checked Oct 2026. Course summary and lesson structure by Sabaq.

Report a problem or a rights request