Learn Python from scratch: a week-by-week roadmap for beginners
A realistic plan for your first two months of Python: what to learn each week, how much to practise, which mistakes to avoid, and when you're ready for real projects.
You don't need a perfect plan to start learning Python. But a rough one helps, mostly so you know what to ignore. Here's the order we'd recommend to a friend, with about 30 to 60 minutes a day. Go slower if you need to; skipping ahead is the one thing that doesn't work.
Week 1: talking to the computer
print(), strings and numbers, variables.input(): reading what the user types, and turning it into a number withint().- Your first error messages. Read them from the bottom up: the last line says what went wrong.
Goal for the week: a tiny program that asks for two numbers and prints their sum, and doesn't crash when you type a word instead of a number. (That last part sneaks in next week.)
Week 2: making decisions
if,elif,else, comparisons,and/or/not.- Indentation is part of the language. Four spaces.
try/except ValueErrorfor input that isn't a number.
A beginner trap: if x = 5 is a typo for if x == 5. Python will tell you, kindly.
Weeks 3 and 4: repeating things
whileloops (repeat until something happens) andforloops (repeat for each item).range(), and whyrange(1, 4)stops at 3.- Lists: adding, removing, looping, slicing.
This is where it gets genuinely fun, because you can start making little games and tools.
Weeks 5 and 6: organising code
- Functions: parameters,
return, and whyreturnis not the same asprint(). - Dictionaries: looking things up by name instead of position.
- Breaking a problem into small functions you can test one at a time.
Weeks 7 and 8: your first real program
Put it together in something slightly bigger than an exercise: a budget tracker, a quiz, a shopping list that saves to a file. Finish it. A finished small project teaches more than three abandoned ambitious ones. (If you keep starting tutorials and never finishing, read how to escape tutorial hell.)
What to skip for now
Frameworks, machine learning libraries, "advanced Python tricks", and arguments online about which editor is best. They'll all still be there in two months, and they'll be much easier.
After the basics
Once loops, functions and dictionaries feel natural, move on to classes, exceptions, files and testing, which is what Python Intermediate covers. If your goal is a job, the roadmap to becoming a Python developer explains what comes after that.
The easiest way to start
Python Fundamentals follows exactly this order: one new idea per lesson, an editor right next to the explanation, and every exercise checked the moment you press the button. It's free, forever, and it runs in your browser, so you can write your first line of Python in the next two minutes.
Questions and answers
- Is Python a good first programming language?
- Yes. Python reads almost like English, has very little boilerplate, and gives clear error messages. It's also genuinely useful: web backends, automation, data and AI all use it, so what you learn first is what you'll use at work.
- How many hours a day should I spend learning Python?
- Thirty to sixty minutes every day beats a five-hour session once a week. Programming is a skill, like an instrument: short, regular practice with real exercises makes it stick.
- Can I learn Python without installing anything?
- Yes. You can start in the browser, with an editor next to each lesson. Installing Python locally is worth doing once you start bigger projects, but it shouldn't stop you from writing your first lines today.
Practise it
Read next
- How to become a Python developer: a realistic roadmap
What a junior Python developer actually does, the skills employers check, the order to learn them in, and how to prove you can do the job without a degree.
- How to escape tutorial hell and start building on your own
Stuck watching tutorials but unable to build anything alone? Why it happens, and a step-by-step way out using small projects with tests and a clear definition of done.
- Project-based learning for programming: how to learn to code by building
Why building real projects teaches programming faster than tutorials and puzzles, how to choose the right project for your level, and how to structure the work like a job.