A realistic first-month plan for python programming

Four weeks of evenings, roughly twenty hours of real practice, and one modest working program at the end: that is an achievable first month, and deliberately not the month in which you master Python. The plan below is built around one rule — each week ends with something that runs — because a plan that ends with “understand the basics” gives you nothing to check.

What the month is for

One month is enough to learn how to run code, store values, make decisions, repeat work, read and write a file, and recognise an error message. It is not enough to be comfortable with classes, packaging, testing frameworks or web frameworks. Trying to cover those as well is the most common way the month disappears without a finished program.

Set the target as a specific small tool you would actually use: a script that renames files by date, totals a column in a spreadsheet export, or turns a list of links into a markdown file. Everything in the plan points at that tool.

Week one: run small things

Install Python, then write programs of five to ten lines and run them from the terminal rather than from a button. Type them by hand even when copying feels faster; the typos are the lesson. Cover printing, variables, strings, numbers, and asking for input with input().

By the end of the week you should be able to create a file called hello.py, run it, and explain what each line does. If installing took an entire evening, you are on schedule — it usually does.

Week two: control the flow

Now make the program decide and repeat. Work through if, elif and else, then for loops over a list and a range, then while loops with a condition you control. Keep each exercise under twenty lines, because the goal is fluency with the shape of the code, not cleverness.

  • Print every item in a list on its own line.
  • Ask for a number and report whether it is above or below ten.
  • Loop five times, collecting input into a list, then print the total.
  • Take the same exercise and break it on purpose, so you see three different errors.

Week three: read and write files

Most useful beginner programs touch a file. Learn open(), the difference between reading and writing, and why a with block saves you from forgetting to close it. Start with a plain text file, then a CSV using the csv module, which is in the standard library and needs no installing.

Aim for one script that reads a file, changes something, and writes a new file without touching the original. That single pattern covers a surprising share of the small tools people write for themselves.

Week four: build it, then finish it

Spend the first half of the week assembling your chosen tool from the pieces you now have. Spend the second half making it usable: a clear variable name for the input path, a message when the file is missing, and a short note at the top explaining how to run it.

Expect the tool to be smaller than you imagined. That is the correct outcome. Finish it, run it on real data, and write three sentences about what you would add next — those sentences become the following month’s plan; if a week has already slipped, extend the plan to six weeks and keep the order.

Judge the month by the program that runs, not by the chapters you read. The reading catches up once there is something real to read for.