How long does it take to learn python programming?
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
- Week 1Introduction to CS and programming using Python
- Week 2Strings, input/output and branchingIteration
- Week 3Loops over strings, guess-and-check and binary
- Week 4Floats and approximation methodsBisection searchReview weeks 1–3 from memory
- Week 5Decomposition, abstraction and functions
- Week 6Functions as objectsLambda functions, tuples and lists
- Week 7Lists and mutability
- Week 8Aliasing and cloningList comprehension, testing and debuggingReview weeks 5–7 from memory
- Week 9Exceptions and assertions
- Week 10DictionariesRecursion
- Week 11Recursion on non-numerics
- Week 12Python classesMore class methodsReview weeks 9–11 from memory
- Week 13Inheritance
- Week 14An object-oriented programming exampleTiming programs and counting operations
- Week 15Big O and Theta
- Week 16Complexity classes examplesSorting algorithmsReview weeks 13–15 from memory
- Week 17PlottingList 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 betaHow 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
- 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
- MIT Course Catalog — 6.100L — units and prerequisites
- MIT Registrar — Subject levels and credit — one MIT unit ≈ 14 hours of work per term