What you'll learn

  • functions, arguments, return values

  • variables, types, exceptions

  • conditionals, Boolean expressions

  • loops

  • objects, methods

  • file I/O, libraries

Course description

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.

Instructors

Gordon McKay Professor of the Practice of Computer Science, Harvard John A. Paulson School of Engineering and Applied Sciences

You may also like

Online

Take your introductory knowledge of Python programming to the next level and learn how to use Python 3 for your research.

Price
Free*
Registration Deadline
Available now
Online

This course picks up where CS50 leaves off, diving more deeply into the design and implementation of web apps with Python, JavaScript, and SQL using frameworks like Django, React, and Bootstrap.

Price
Free*
Duration
12 weeks long
Registration Deadline
Available now
Online

This course is a variant of Harvard University's introduction to computer science, CS50, designed especially for lawyers (and law students).

Price
Free*
Duration
10 weeks long
Registration Deadline
Available now