Educational Lab

How long does it take to learn python programming?

Measured by MIT 6.100L Introduction to Computer Science and Programming · updated
Short answer

About 84 hours of focused work. MIT budgets 6 units for 6.100L Introduction to Computer Science and Programming, and one MIT unit is about 14 hours. That is 17 weeks at 5 hours a week, 11 weeks at 8 hours a week, or 7 weeks at 12 hours a week — MIT's own semester pace.

Hours
≈ 84
At 5 h / week
17 weeks
MIT units
6 (2-0-4)
Prerequisite
none

What you will be able to do

By the end you can write Python programs from scratch — branching, loops, functions, lists, dictionaries, recursion, classes — and reason about how fast they run. The plan below follows the topic order of 6.100L Introduction to CS and Programming using Python, Fall 2022, taught by Ana Bell — free on MIT OpenCourseWare, with lectures, problem sets and exams.

Your plan

Hours a week
Starting point
17 weeks
≈ 84 hours · 5 hours a week
  1. Week 1
    Introduction to CS and programming using Python
  2. Week 2
    Strings, input/output and branching
    Iteration
  3. Week 3
    Loops over strings, guess-and-check and binary
  4. Week 4
    Floats and approximation methods
    Bisection search
    Review weeks 1–3 from memory
  5. Week 5
    Decomposition, abstraction and functions
  6. Week 6
    Functions as objects
    Lambda functions, tuples and lists
  7. Week 7
    Lists and mutability
  8. Week 8
    Aliasing and cloning
    List comprehension, testing and debugging
    Review weeks 5–7 from memory
  9. Week 9
    Exceptions and assertions
  10. Week 10
    Dictionaries
    Recursion
  11. Week 11
    Recursion on non-numerics
  12. Week 12
    Python classes
    More class methods
    Review weeks 9–11 from memory
  13. Week 13
    Inheritance
  14. Week 14
    An object-oriented programming example
    Timing programs and counting operations
  15. Week 15
    Big O and Theta
  16. Week 16
    Complexity classes examples
    Sorting algorithms
    Review weeks 13–15 from memory
  17. Week 17
    Plotting
    List access, hashing and simulations

A plan on paper is the easy part. Educational Lab runs it: Otto fits it into your week, a tutor teaches through recall, reviews bring topics back.

Start this plan — free beta

How we count the hours

MIT gives every subject a number of units, written as three numbers — class time, lab time and preparation. 6.100L is 2-0-4, so 6 units. The MIT Registrar puts one unit at about 14 hours of work per term, which makes 84 hours: lectures, reading and problem sets together.

The starting point is our planning assumption, not an MIT figure: if you studied the subject before we count 75% of the hours, if you are only reviewing — 50%. Every fourth week brings back the three before it, because recalling a topic after a gap is what makes it stay.

Questions

How long does it take to learn Python from scratch?
MIT's introductory programming subject for students with no experience, 6.100L, is a 6-unit course — about 84 hours of work. That gets you to writing real programs with functions, data structures, recursion and classes; applying Python to data analysis or the web is a further step.
Can I learn Python on my own?
Yes. 6.100L is on MIT OpenCourseWare with lecture videos, slides, code and problem sets. Writing code every week matters more than watching lectures — plan the problem sets into your week, not just the videos.
What should I learn after Python basics?
At MIT the next subjects are 6.100B (computational thinking and data science) and, with discrete math, 6.1210 Introduction to Algorithms.

Sources

  1. MIT OpenCourseWare — 6.100L Introduction to CS and Programming using Python, Fall 2022 — topic order; materials CC BY-NC-SA 4.0, hosted by MIT
  2. MIT Course Catalog — 6.100L — units and prerequisites
  3. MIT Registrar — Subject levels and credit — one MIT unit ≈ 14 hours of work per term

More study plans