Python learning · Beginner projects ·
What Can You Build After 3 Months of Learning Python?
30 → 60 → 90 days · 8 practical projects
Three months of steady Python practice can lead to useful programs—not just exercises. Check what you can do, choose from eight beginner projects and follow two runnable examples with real tests.
What your first projects can look like
Quick answer
What can you build after three months?
After about three months of regular Python practice, you may be able to build a fare calculator, short quiz or expense tracker—and, if you can handle files and errors, a book register, shop-sales report, file organiser, marks analyser or attendance tracker. Choose a project based on the skills you can demonstrate, not the number of months on a calendar.
For example, a learner who can use functions and files might read fictional shop sales from a spreadsheet-style CSV file and produce a report: 14 items sold, KSh 850 in sales revenue . This guide shows the finished result, how the program works, what to test and what to build next.
What should you be able to do after three months of Python?
There is no universal three-month finishing line. Consider two fictional learners: Akinyi writes and improves small scripts most weekdays; Brian mainly watches lessons. They may have spent the same number of months learning, but their ability to solve a problem without guidance will differ.
Judge progress by what you can write, explain, change and test , not just by the course videos you have completed.
| Your current ability | A suitable project | Evidence you are ready |
|---|---|---|
Variables, arithmetic and
if
statements
|
Fare calculator | Correct totals and sensible invalid-input handling |
| Loops, lists and dictionaries | Quiz or simple tracker | Repeated questions or records without copied code |
| Functions and file handling | Expense or book register | Data survives an application restart, if saving is part of Version 1 |
| CSV reading, validation and exceptions | Shop-sales or marks analyser | Correct totals and useful error messages for faulty rows |
| Still following every tutorial line by line | Two shorter independent exercises | You can finish a variation without watching the same steps |
On a phone, swipe this table sideways to see all columns.
A possible first 30, 60 and 90 days
This is an illustrative learning progression, not a promised timetable . Move forward when the previous stage makes sense, even if you need longer.
- Around day 30 — Make a calculation work. Use variables, strings, numbers, conditions and loops. Example: a fare calculator or three-question quiz. Predict the answer before running the script.
- Around day 60 — Organise the program. Write functions and use lists or dictionaries. Example: a quiz that keeps score, or a tracker that totals spending categories. Change a rule without rewriting the whole script.
- Around day 90 — Use and check a file. Read a small sample CSV or JSON file, handle missing and invalid data, and run repeatable tests. Example: a fictional shop-sales report. Be able to explain a wrong result and correct it.
A beginner who has only reached the first stage can still build a real project. A learner who has reached the third stage should choose work that involves files and checking data, not merely another print statement.
NIT currently lists Python Programming as a four-month part-time course in its ICT catalogue. The three-month question in this article is a general learning checkpoint, not a statement that NIT’s course finishes in three months . [1]
Six Python skills to check before choosing a project
Try these mini-tasks without copying an entire solution. If one is difficult, practise it before choosing a project that relies on it.
-
Variables and numbers:
Four notebooks cost KSh 50 each. Store
quantity = 4andprice = 50; calculate KSh 200 . -
Conditions:
Reject a negative price such as
-50. Explain when anifblock runs. -
Loops:
Print five product names from a list without writing five separate
print()calls. - Lists and dictionaries: Store three expenses and retrieve a total by category.
-
Functions:
Write
total_fare(passengers, fare_each)and explain what the function returns. -
Files and errors:
Read a tiny CSV file; explain the difference between an absent file and a number written as
thirty.
A good self-check is to write a function, test it with a normal value, change the input and explain the new result. Python’s official tutorial explains the underlying language features. [2]
What do you need to get started?
Install an appropriate Python 3 version from
python.org/downloads
or use a supervised lab computer with Python already installed. Make a folder called
python-practice
. Open a terminal in that folder and check whether Python is available:
On systems where
python
points to a different interpreter or is unavailable, try
python3 --version
. When you save the fare calculator below as
fare_calculator.py
, run it with
python fare_calculator.py
(or
python3 fare_calculator.py
). You can complete the projects below locally; the first versions do not require an internet connection. Avoid naming your script
csv.py
or
pathlib.py
, because those names can interfere with imports from Python’s standard library.
Which of these eight beginner Python projects should you build?
The projects below are choices, not eight compulsory assignments . The levels describe the skills required for the small version specified here, not the difficulty of every possible future upgrade.
| Project | Level | Main Python practice | First deliverable |
|---|---|---|---|
| Matatu fare calculator | Foundation | Arithmetic, functions, conditions | Correct fare for a group |
| School revision quiz | Foundation | Lists, loops, conditions | Five questions and a score |
| Personal expense tracker | Foundation → developing | Dictionaries, totals, optional JSON | Weekly spending summary |
| Library book tracker | Developing | Functions, records, state | Borrow/return status |
| Small-shop sales analyser | Developing | CSV, validation, totals | KSh sales report |
| Safe file organiser | Developing |
pathlib
, exceptions
|
A no-change sorting preview |
| Student marks analyser | Developing | CSV, functions, averages | Validated class summary |
| Simple attendance tracker | Stretch | Add/edit/search, persistence | Fictional attendance register |
On a phone, swipe this table sideways to see all columns.
Matatu fare calculator — start with a clear answer
The problem: A group wants to calculate the cost of travelling on one fictional route. Version 1: Store four passengers and a fare of KSh 80 per passenger. Display KSh 320 . You need variables, multiplication and a function.
Check it: Four passengers at KSh 80 must equal 320; zero passengers must equal 0; negative fares must be rejected. Upgrade: Allow different fictional fare categories after the single-fare calculation works.
School revision quiz — practise loops and conditions
The problem: A learner wants feedback after answering five practice questions. Version 1: Store a question and correct answer together, ask five questions, compare each answer and print a score such as 4/5 .
Check it: Try five correct answers, five wrong answers, a blank answer and different capitalisation. Decide whether answers should ignore surrounding spaces. Upgrade: Shuffle the questions and display an explanation for each answer.
Personal expense tracker — organise small amounts
The problem: A student wants to see where fictional weekly spending went. Version 1: Record transport KSh 200, food KSh 350 and stationery KSh 100. Display a total of KSh 650 , plus the category totals.
Check it: Reject a negative amount and an empty category; verify that two expenses in the same category are added together. Upgrade: Save and reload fictional records in JSON. Do not use actual banking credentials or personal financial records in a public exercise.
Library book tracker — manage a changing status
The problem: A classroom needs to track a small collection of fictional books. Version 1: Add a book code, title and availability status; allow a borrow or return action and display the resulting status.
Check it: Reject a duplicate book code, a second borrow of an unavailable book and a return of a book that was never borrowed. Upgrade: Save the register to a local file so it is available after the program closes.
Small-shop sales analyser — calculate from a CSV file
The problem: A fictional shop has sales records and needs a daily revenue summary. Version 1: Read item, quantity and whole-KSh price from a CSV file, group identical item names and calculate total units and revenue. The worked example below produces 14 units and KSh 850 .
Check it: Try an absent file, missing CSV columns, a wrong number and a negative quantity. Upgrade: Add dates and a dated summary after the basic result passes its tests.
Safe file organiser — practise automation without losing files
The problem:
A practice folder contains mixed copies of documents and photos.
Version 1:
List a proposed destination folder for each file extension, such as
notes.txt → Text
,
without moving, renaming or deleting any files
.
Check it:
Include two files with the same name, an unknown extension and an empty folder.
Upgrade:
Allow changes only within a disposable practice folder, after confirming a plan and a way to undo mistakes. Python’s
pathlib
module helps work with file paths.
[3]
Student marks analyser — check data before averaging
The problem:
A teacher wants to understand a
fictional
class-mark dataset.
Version 1:
Given marks of
60
,
70
and
80
, calculate an average of
70
. Read several records and display a summary.
Check it: Decide what to do with a blank mark, a value below 0 or above 100, and an empty dataset; do not silently treat missing marks as zero. Upgrade: Summarise marks by subject using invented student IDs.
Simple attendance tracker — a stretch task
The problem: A class needs an offline practice register. Version 1: Add fictional learner IDs, mark a date as present or absent and retrieve the record. Use a JSON file or an introductory SQLite database if you already understand file storage.
Check it: Avoid duplicate learner/date entries, reject impossible date formats and confirm that saved changes reload correctly. Upgrade: Export a summary CSV. This is a stretch project because storing and updating records reliably involves more decisions than a simple calculator.
Choosing one: If you cannot yet explain a function and a condition, start with the fare calculator. If you are comfortable with loops and dictionaries, try the quiz or expense tracker. If files and input validation are familiar, choose the sales analyser. When in doubt, complete a smaller version before adding features.
Start here: build a small matatu fare calculator
Before you tackle file processing, build a program that solves one problem completely. The example below uses fixed numbers on purpose. It takes
passengers
and
fare_each
from the programmer, not a keyboard prompt. Because we are counting people and using whole-shilling fares, this version checks that both values are integers. Save the following as
fare_calculator.py
. Adding interactive input is an optional next step.
Run
python fare_calculator.py
.
Expected output:
Read it from top to bottom.
def
creates a function; the first
if
rejects non-integers (for example,
2.5
passengers); the second rejects negative values.
raise
reports invalid input, and
return
sends the total back to the caller. Try
total_fare(4, -80)
and
total_fare(2.5, 80)
to see the two different errors. Then change the passenger count to six and predict the answer before running it:
KSh 480
.
Independent challenge: Write a notebook-price calculator from a blank file using the same ideas. If you can change the problem without copying every line, you are learning to build rather than simply to repeat.
Step by step: build a fictional shop-sales report in Python
Now try a project that uses data from a file. A
CSV
(comma-separated values) file is a simple table stored as text. You can edit one in a text editor or many spreadsheet programs. Python’s standard-library
csv.DictReader
reads rows using the column names as keys.
[4]
The goal: Read four fictional sales rows, calculate revenue for each product, count all units and print the total revenue in Kenyan shillings. This is a teaching example, not a real shop’s accounts.
Step 1 — Create the project files
Make a folder named
shop-sales
containing three files:
sales.csv
,
sales_report.py
and (for automated checks)
test_sales_report.py
. Keep
sales.csv
next to
sales_report.py
. The finished program looks for the CSV beside the script, so running it from another terminal folder will still work.
Step 2 — Enter the sample data in
sales.csv
On a phone, swipe inside long code windows to read the full lines. When copying Python, preserve each line break and indentation.
The first row contains column headings . Every following row records a fictional item, the number sold and its price per unit in whole KSh. The first and third data rows are both notebooks, so their revenue will be added together.
Before writing Python, calculate a few results by hand:
| Item | Calculation | Revenue |
|---|---|---|
| Notebook |
(3 × 120) + (2 × 120)
|
KSh 600 |
| Pen |
5 × 30
|
KSh 150 |
| Eraser |
4 × 25
|
KSh 100 |
| All items | 14 units in total | KSh 850 |
On a phone, swipe this table sideways to see all columns.
This is sales revenue , not profit. The program does not subtract costs, calculate tax, track stock, handle refunds or connect to payment services. The prices use whole shillings to keep the first exercise understandable; real financial systems need requirements and controls appropriate to their use.
Step 3 — Understand the four pieces of the program
-
Read:
csv.DictReaderconverts each CSV row into a dictionary keyed by column headings. - Validate: Check that required headings exist, values are whole numbers, quantities are positive and prices are not negative. The example permits a price of zero for a fictional free sample.
-
Accumulate:
Multiply quantity by price, add that amount to the product’s total and add the quantity to total units.
defaultdict(int)is a dictionary that automatically starts a previously unseen product total at zero. -
Report:
Print the products alphabetically and display the final units and revenue.
Pathopens the file using Python’s path-handling facilities. [3] [4]
First look: read the rows before calculating anything
Before studying the full program, save the next snippet as
look_at_sales.py
in the
same folder as
sales.csv
. Run
python look_at_sales.py
from that folder.
You should see
Notebook 3
,
Pen 5
,
Notebook 2
and
Eraser 4
, each on its own line. The CSV reader gives you
text
, even for numbers: the first
row["quantity"]
is the string
"3"
, not the integer
3
. That is why the finished report explicitly converts quantities and prices with
int()
and rejects invalid text such as
thirty
.
[4]
To check one sales row without any code, use
quantity × price
:
3 × 120 = KSh 360
. The full program repeats that operation for every row and adds together rows for the same item.
Step 4 — Save this complete program as
sales_report.py
The following program adds input checks to that simple row-reading idea. It refuses missing or unexpected named columns, invalid quantities and prices, and malformed CSV quoting rather than silently giving a misleading result. Copy the entire code block , preserving its indentation. This is the developing-level example; beginners still learning loops can finish the fare calculator first.
Step 5 — Run the program
Open a terminal in the project folder, then run:
Some systems use
python3 sales_report.py
instead.
Expected output:
Compare the printed total with your handwritten calculations. Do not continue until they agree.
Step 6 — Deliberately test a mistake
Change the price of a pen from
30
to
thirty
in a
copy
of the CSV file. Run the program again. It should tell you that the row needs whole-number values instead of quietly calculating a wrong total.
Restore the file. Then try a negative quantity, a missing price column or a filename that does not exist. Read the error message and identify which check caught the problem.
A data-cleaning detail: names must be consistent
This first version removes spaces at the start and end of product names, so
Notebook
and
Notebook
group together. However, Python dictionary keys are case-sensitive:
Notebook
and
notebook
would be shown as
different items
. Keep item names consistently capitalised in this exercise. Normalising case before grouping is a useful later upgrade, but decide how product labels should be displayed before changing the logic. A real shop report would also need clearer product identifiers than names alone.
Step 7 — Test automatically, then make one improvement
With
test_sales_report.py
in the companion project folder, run:
The companion files contain
24 repeatable tests
covering correct totals, missing, duplicate and unexpected headings, invalid and incomplete rows, misplaced commas, malformed quotations, negative or zero quantities, invalid prices, blank items, zero-priced samples, missing files, case-sensitive item names, CSV files with a UTF-8 marker, physical CSV line numbers and command-line success or failure. Python’s
unittest
framework is included in the standard library.
[5]
Your upgrade: Add an optional message naming the highest-revenue product. For the sample, it is Notebook (KSh 600) . Decide what should happen if there are no sales or two products tie, and add tests for those cases. Do not confuse highest revenue with highest units sold .
A practical three-session challenge after the worked examples
You do not have to complete all eight project ideas. Use three focused practice sessions to make one small program independently:
Session 1 — Define and sketch.
Choose an everyday problem, write two sample inputs and predict the expected answers. Do not open a tutorial until you have written your first attempt.
Session 2 — Build and break.
Implement the smallest useful solution. Test an ordinary input, an edge case and a deliberately invalid input. Note what each result taught you.
Session 3 — Change and explain.
Add one small feature, rerun all previous tests and write four README lines: problem, how to run, expected output and one known limitation.
For a quiz, for instance, your change might be to accept answers with different capitalisation. For the shop report, it might be to display the highest-revenue product. Your success criterion is not the number of lines written: it is a result you can reproduce and explain without the tutorial open .
How to test your own beginner Python project
A program printing one correct result is promising; it is not the same as having checked its behaviour. Before you call a project finished, write down expected outputs for three categories of tests:
| Type of test | Shop-sales example | Expected behaviour |
|---|---|---|
| Normal case | Four sample sales rows | 14 units; KSh 850 |
| Boundary | Header-only CSV | Zero units and zero revenue |
| Invalid input |
Pen,-2,30
|
Clear error, no fabricated total |
| Invalid input |
Pen,2,thirty
|
Reject non-numeric price |
| File error |
sales.csv
absent
|
Helpful missing-file message |
| Structural error | Duplicate header, unexpected fourth heading or extra unheaded field | Reject ambiguous input |
On a phone, swipe this table sideways to see all columns.
For each failure, write down
what you expected, what happened and what you changed
. Run the tests again after every correction. Avoid suppressing every exception with
except: pass
; it hides mistakes rather than fixing them.
Common problems beginners run into
| Problem | First thing to check |
|---|---|
python
command not found
|
Check Python installation; try
python3 --version
|
FileNotFoundError
|
Is
sales.csv
saved alongside
sales_report.py
, with that exact filename?
|
IndentationError
|
Are blocks under
def
,
if
,
for
and
with
indented consistently?
|
ModuleNotFoundError
|
Is the correct interpreter running? Did you name a file
csv.py
?
|
ValueError
for
thirty
|
Is a number written as text where an integer is required? |
| Wrong sales total | Recalculate one CSV row by hand; check quantities and repeated item names |
| CSV columns rejected |
Does the file contain exactly these three unique headings:
item
,
quantity
,
unit_price_ksh
(in any order)?
|
| Test passes before an edit but fails afterward | Read the first failing assertion and compare the changed behaviour |
On a phone, swipe this table sideways to see all columns.
If you cannot explain the error, copy the error text into your study notes and locate the affected line. Change one thing at a time, then rerun the same input.
How do you know the project is really yours?
Using an example or tutorial is a legitimate way to learn. To measure independence, try this practical challenge without looking at the full solution:
- Explain the problem and expected answer in plain language.
- Identify where the program reads input, processes it and produces output.
- Modify one rule, such as rejecting a negative price.
- Introduce one invalid input and explain the resulting error.
- Build a related tiny program, such as a stationery order total, from a new blank file.
Self-check: For each item, give yourself 0 if you cannot do it yet, 1 if you need hints and 2 if you can do it independently. A score of 8–10 suggests you understand this particular beginner project well; lower scores reveal useful practice areas. This is a suggested learning exercise, not a standardised test or professional qualification .
Once you can explain and test a project, prepare a brief
README.md
containing the purpose, required Python version, input format, how to run the program and the tests you performed. GitHub documents how a repository README helps other people understand and use a project.
[6]
For a full walkthrough of presenting completed work, see
NIT’s coding portfolio guide
.
Can three months of Python get you a programming job?
Three months of study does not by itself demonstrate professional readiness . A beginner project shows that you can begin solving problems with code. Employment typically depends on the particular role, the quality of your work, additional technical knowledge and your ability to explain and maintain what you built. Avoid promising yourself or others a job solely because you have reached a calendar milestone.
If you later want to demonstrate employment-related work, NIT’s ICT portfolio projects for jobs in Kenya covers that separate goal. Here, the first priority is to master small independent Python programs.
What should you learn in months four to six?
Choose one direction after you can build and test small programs:
| If you enjoy… | Explore next | A sensible follow-up project |
|---|---|---|
| Repetitive tasks | File operations and safe automation | Generate a report from a practice folder |
| Working with data | SQL, pandas and charts | Analyse a fictional or public CSV dataset |
| Building software systems | Git, databases, APIs, testing | Small app that stores and retrieves records |
| AI and machine learning | Data preparation, statistics and evaluation | Explain patterns in a carefully chosen practice dataset |
| Cybersecurity | Networks, Linux and authorised labs | Offline analysis of deliberately created sample logs |
On a phone, swipe this table sideways to see all columns.
If your next goal is a broader analytics portfolio using Excel, SQL or Power BI, follow NIT’s separate data-analyst projects guide rather than treating this Python foundation lesson as a full data-analytics curriculum.
A useful progression is one finished project → one verified improvement → a different project using the same skills . That develops independence before specialisation.
Frequently asked questions
Is three months enough to learn Python?
It can be enough to practise fundamentals and complete small programs, depending on what you studied and how consistently you wrote code. Decide what to tackle next from the six skills check and your ability to finish an independent project, not from elapsed time alone.
What is the easiest useful Python project?
A fare or stationery-price calculator is a good start because you can calculate the expected answer manually and test invalid values. After that, a five-question quiz adds loops, lists and conditions.
Can I build an app after three months of learning Python?
You may be able to create a useful command-line application, such as a quiz or local tracker. A browser-based application or mobile app adds other technologies and design decisions; it should be a later goal unless you already have those skills.
Can I complete these projects without internet access?
Yes. Their first versions can run locally with Python and fictional data files. You may need internet access to obtain software or learning materials initially, depending on your setup.
Can I practise Python on an Android phone instead of a computer?
Some Android coding environments can run small Python scripts, but file locations, terminal commands and installed features vary by app. The calculator is a reasonable first experiment on a phone. For the CSV sales report, a school lab computer or laptop is usually easier because you can see the script and the data file side by side. Whichever device you use, confirm that it runs Python 3 and that you can find the folder containing your files.
Do I need Django, Flask, pandas or AI for my first project?
No. The worked examples use Python’s standard library. Learn a framework or package when your next problem genuinely calls for it.
How do I know my Python program is correct?
Write expected results before running it, compare them with actual outputs, try invalid and boundary inputs, then repeat those checks after editing the code. Test failures help reveal which assumption or requirement needs attention.
Can Python help with a small business in Kenya?
Yes. With properly authorised data, Python can support calculations, reports and repetitive record tasks. The fictional shop example shows the underlying technique; it is not a replacement for production accounting controls.
What if I finish only one project after three months?
That can still be useful progress. A small project you understand, improve and test independently is a stronger foundation than several copied programs you cannot explain.
Learn practical Python at Newton Institute of Technology
NIT lists Python Programming as a four-month part-time course in its current ICT catalogue. [1]
NIT · Practical ICT training
Build confidence through practical Python training
Want structured practice with programming fundamentals, useful applications and feedback on your work? NIT offers Python Programming alongside related ICT pathways in Full-Stack Software Development, Data Science & Analytics and Artificial Intelligence. Ask admissions about intakes and delivery options.
Explore NIT’s ICT courses and enquire about admission . Confirm the current intake and mode of study with admissions.
References and further learning
- Newton Institute of Technology — School of ICT . Current course catalogue, including Python Programming duration and study mode. Accessed 12 November 2026.
- Python Software Foundation — The Python Tutorial . Variables, control flow, functions, data structures and exceptions. Accessed 12 November 2026.
-
Python Software Foundation —
pathlib. Working with file paths. Accessed 12 November 2026. -
Python Software Foundation —
csv. Reading CSV files usingDictReaderandnewline="". Accessed 12 November 2026. -
Python Software Foundation —
unittest. Running automated tests. Accessed 12 November 2026. - GitHub Docs — About READMEs . Documenting code projects. Accessed 12 November 2026.
Prepared by Newton Institute of Technology Editorial Team · Educational resource · 12 November 2026. All worked financial and student examples use invented data.