Skip to main content

HarvardX: CS50's Introduction to Programming with Python

An introduction to programming using Python, a popular language for general-purpose programming, data science, web programming, and more.

CS50's Introduction to Programming with Python
10 weeks
3–9 hours per week
Self-paced
Progress at your own speed
Free
Optional upgrade available

There is one session available:

872,843 already enrolled! After a course session ends, it will be archivedOpens in a new tab.
Starts Feb 27
Ends Dec 31

About this course

Skip About this course

An introduction to programming using a language called Python. Learn how to read and write code as well as how to test and "debug" it. Designed for students with or without prior programming experience who'd like to learn Python specifically. Learn about functions, arguments, and return values (oh my!); variables and types; conditionals and Boolean expressions; and loops. Learn how to handle exceptions, find and fix bugs, and write unit tests; use third-party libraries; validate and extract data with regular expressions; model real-world entities with classes, objects, methods, and properties; and read and write files. Hands-on opportunities for lots of practice. Exercises inspired by real-world programming problems. No software required except for a web browser, or you can write code on your own PC or Mac.

Whereas CS50x itself focuses on computer science more generally as well as programming with C, Python, SQL, and JavaScript, this course, aka CS50P, is entirely focused on programming with Python. You can take CS50P before CS50x, during CS50x, or after CS50x. But for an introduction to computer science itself, you should still take CS50x!

At a glance

  • Language: English
  • Video Transcript: English
  • Associated skills:Unit Testing, Computer Science, JavaScript (Programming Language), Regular Expressions, C (Programming Language), SQL (Programming Language), Data Science, Web Development, Python (Programming Language), Boolean Expression, Web Browsers, Debugging, Personal Computers

What you'll learn

Skip What you'll learn
  • Functions, Variables
  • Conditionals
  • Loops
  • Exceptions
  • Libraries
  • Unit Tests
  • File I/O
  • Regular Expressions
  • Object-Oriented Programming
  • Et Cetera

This course is part of Learning Python for Data Science Professional Certificate Program

Learn more 
Expert instruction
3 skill-building courses
Self-paced
Progress at your own speed
6 months
3 - 6 hours per week

Interested in this course for your business or team?

Train your employees in the most in-demand topics, with edX For Business.