CS50's Introduction to Programming with Python

Functions, Arguments, and Return Values (oh my!)

Join Harvard Professor David J. Malan in this online course that will introduce you to programming using Python, a popular language for data science and more.

Featuring faculty from:
9 weeks
3-9 hours a week
Certificate Price
Program Dates
Start CS50's Programming with Python Today.

What You'll Learn

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 and without prior programming experience who'd like to learn Python specifically. Learn about functions, arguments, and return values (oh my!); variables and types; conditions and Boolean expressions; loops; and objects and methods. Plus exceptions, file I/O, and libraries. Hands-on opportunities for lots of practice. Exercises inspired by real-world programming problems.

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!

The course will be delivered via edX and connect learners around the world. By the end of the course, participants will understand the following concepts:

  • Functions, Variables
  • Conditionals
  • Loops
  • Exceptions
  • Libraries
  • Unit Tests
  • File I/O
  • Regular Expressions
  • Object-Oriented Programming

Your Instructors

David J. Malan is Gordon McKay Professor of the Practice of Computer Science at Harvard University in the School of Engineering and Applied Sciences as well as a Member of the Faculty of Education in the Graduate School of Education and an Executive Fellow at Harvard Business School. He teaches Computer Science 50, otherwise known as CS50, which is among Harvard University’s largest courses, one of Yale University’s largest courses, and edX’s largest MOOC. He also teaches at Harvard Business School, Harvard Law School, Harvard Extension School, and Harvard Summer School.

Ways to take this course

When you enroll in this course, you will have the option of pursuing a Verified Certificate or Auditing the Course.

A Verified Certificate costs $199 and provides unlimited access to full course materials, activities, tests, and forums. At the end of the course, learners who earn a passing grade can receive a certificate. 

Alternatively, learners can Audit the course for free and have access to select course material, activities, tests, and forums. Please note that this track does not offer a certificate for learners who earn a passing grade.

Read More

Data Science Principles

Are you prepared for our data-driven world?

Data Science Principles gives you an overview of data science with a code- and math-free introduction to prediction, causality, data wrangling, privacy, and ethics.

Read More

CS50: Introduction to Computer Science

This is CS50x

An introduction to the intellectual enterprises of computer science and the art of programming.

Read More

Data Science for Business

Move beyond the spreadsheet

Designed for managers, this course provides a hands-on approach for demystifying the data science ecosystem and making you a more conscientious consumer of information.