Tech & AI

Python for Absolute Beginners: Your First Month

Python for Absolute Beginners: Your First Month

A four-week plan for learning your first programming language, built around writing code from day one instead of watching videos about writing code.

πŸ“š
Recommended reading: the ideas here are covered in depth in The Pragmatic Programmer. Check the book β†’

Most people who try to learn programming fail for a reason that has nothing to do with intelligence. They spend weeks consuming tutorials, feel like they are learning, and discover at the first blank editor that they cannot produce anything.

The fix is structural: write code every session, starting on day one, and keep the projects small enough to finish.

Why Python first

Python is the standard recommendation for a first language for three reasons. The syntax reads close to English, so you spend your attention on thinking rather than punctuation. The error messages are unusually clear. And the same language is used for data analysis, automation, web backends, and scripting, so what you learn stays useful.

It is not the fastest language and it is not used everywhere. Neither matters for a first language. What matters is getting to the point where you can build something.

Week one: the four things everything is made of

Every program, in every language, is built from a handful of primitives. Learn these and you can read more than you expect.

  • Variables β€” named boxes holding a value.
  • Conditions β€” doing something only if a test is true.
  • Loops β€” doing something repeatedly.
  • Functions β€” naming a block of steps so you can reuse it.

Do not move on until you can write a small program that uses all four without looking anything up. That program might be a number-guessing game in twenty lines. It does not matter what it is.

Week two: data structures

Two structures carry almost all real work. A list is an ordered collection β€” a shopping list, a set of names, a series of readings. A dictionary maps keys to values, like a contact card where a name returns a phone number.

Learn to add to them, loop over them, check whether something is in them, and sort them. Then learn to nest them, because real data is almost always a list of dictionaries.

Week three: files and the real world

This is the week programming stops being an exercise. Read a text file, split it into lines, do something to each line, and write the result to a new file.

Then do the same with a CSV β€” the plain spreadsheet format. Almost every business task is some version of "read this file, transform the rows, write that file", and being able to do it is immediately useful at work.

Week four: one real project

Pick something you would genuinely use. Not a to-do app tutorial β€” something small and specific to you. Rename a folder of photos by date. Summarise a spreadsheet. Check a website for a change and email yourself.

The project will be harder than the exercises, which is the point. Struggling to finish something real is where learning actually happens.

Reading about programming feels like progress and is not. The only reliable measure is whether you can write the thing without the tutorial open.

The one habit that matters most

When something breaks β€” and it will constantly β€” read the error message. The last line tells you the type of error, and the line above tells you where. Python's messages are unusually specific and most beginners skip straight to searching the internet instead of reading them.

The skill of debugging is the skill of narrowing: change one thing, run it again, see what moved. That generalises to every language you will ever use.

What to skip for now

Object-oriented programming, decorators, type hints, virtual environments, testing frameworks, and the standard library tour. All of them matter later and all of them are confusing before you can write a loop confidently.

A great deal of beginner frustration comes from tutorials that introduce these in week one because the author finds them interesting, not because the learner needs them.

Judging your own progress

The useful test is not "do I understand this chapter". It is "can I build a small thing without help". If the answer is no, the fix is more small things, not more chapters.

A month of daily practice, even twenty minutes, will get most people to the point of writing useful scripts. Reaching professional competence takes considerably longer, and that is normal.

The bottom line

Learn variables, conditions, loops, and functions. Then lists and dictionaries. Then files and CSV. Then build one small real thing. Write code every session and read the error messages. That plan is unglamorous and it works β€” and The Pragmatic Programmer is the right book to read once you can write code that runs.

πŸ“š Recommended reading

Print editions of books covered on this site that go deeper into this topic.

See all 10 books ranked in β€œBest Programming Books for Developers” β†’

Related articles

Practical Prompt Engineering for AI Tools

Practical Prompt Engineering for AI Tools

Better prompts are less about magic words and more about clear thinking. Here are the habits that reliably get more useful answers from AI tools.

πŸ“ Tech & AI πŸ—“ September 30, 2026 ⏱ 8 min read
Using ChatGPT at Work Without Losing Your Edge

Using ChatGPT at Work Without Losing Your Edge

AI assistants can save real hours each week β€” if you use them for the right tasks. A practical guide to weaving them into everyday work.

πŸ“ Tech & AI πŸ—“ October 1, 2026 ⏱ 8 min read
Cybersecurity Basics: Protecting Your Accounts and Devices

Cybersecurity Basics: Protecting Your Accounts and Devices

Most breaches do not start with brilliant hackers. They start with a reused password, an ignored update, or a link that should not have been clicked. Here is how to close those gaps.

πŸ“ Tech & AI πŸ—“ October 2, 2026 ⏱ 8 min read

Suggested summaries

Tech & AI The Innovator's Dilemma book cover

The Innovator's Dilemma

Clayton M. Christensen Β· 1997
β˜…β˜…β˜…β˜…β―¨ 4.5

Why do well-managed companies lose to small entrants with worse products? Christensen's answer is that the same decisions that make them successful are the problem.

Tech & AI
Tech & AI Homo Deus book cover

Homo Deus

Yuval Noah Harari Β· 2016
β˜…β˜…β˜…β˜…β―¨ 4.5

Harari looks past famine, plague and war to ask what humanity will chase next: immortality, engineered happiness and god-like power over life itself.

Tech & AI
Tech & AI Life 3.0 book cover

Life 3.0

Max Tegmark Β· 2017
β˜…β˜…β˜…β˜…β―¨ 4.5

Max Tegmark maps the choices ahead for artificial intelligence β€” utopia, catastrophe or something in between β€” and why values matter as much as code.

Tech & AI