Good mini project ideas for beginners in Python are small, finishable and teach one or two skills at a time. The ten below go from a guessing game you can build in an hour to a contact book that uses a real database. All of them use only Python's standard library, so there is nothing extra to install.
These projects are for students who know Python basics: variables, conditions, loops, functions, lists and dictionaries. If you are still deciding whether Python is right for you, read what Python is used for first.
Simple Python projects at a glance
| # | Project | Main skills it teaches | Time for a first version |
|---|---|---|---|
| 1 | Number guessing game | Loops, conditions, random | 1 hour |
| 2 | To-do list saved to a file | Lists, functions, JSON files | 3 to 4 hours |
| 3 | Expense tracker with CSV | Dictionaries, csv module, totals | 1 day |
| 4 | Password generator | strings, secrets module, validation | 2 hours |
| 5 | Quiz app | Dictionaries, lists, scoring, JSON | 3 to 4 hours |
| 6 | Word frequency counter | String methods, Counter, file reading | 2 hours |
| 7 | Student grade report | Functions, sorting, averages | 3 hours |
| 8 | Contact book with SQLite | sqlite3, SQL, create/read/update/delete | 1 to 2 days |
| 9 | File organiser | pathlib, shutil, working with folders | 3 hours |
| 10 | Tic-tac-toe | Lists of lists, game logic, win checks | 1 day |
Build them roughly in this order. Each one adds something new.
Python project ideas for students
1. Number guessing game
The program picks a random number from 1 to 100. The player guesses, and the program says "too high" or "too low" until the guess is right, then prints the number of tries.
What it teaches: while loops, if/elif/else, the random module, converting input with int().
Watch out for: the program crashing when the user types a word instead of a number. Handle it with try/except ValueError.
Stretch goal: add difficulty levels with different ranges and a limit on tries, and keep a best score.
2. To-do list saved to a file
A menu in the terminal lets you add a task, list tasks, mark one as done and delete one. Tasks are saved to a JSON file so they are still there when you restart.
What it teaches: lists of dictionaries, functions for each action, the json module, reading and writing files.
Watch out for: the first run, when the file does not exist yet. Your program should create an empty list instead of crashing.
Stretch goal: add due dates with the datetime module and show overdue tasks first.
3. Expense tracker with CSV
Record each expense with date, category and amount in a CSV file. Show the total for the month and the total for each category.
What it teaches: the csv module, dictionaries for grouping, number formatting, basic data validation.
Watch out for: negative or empty amounts. Reject them with a clear message.
Stretch goal: add a monthly budget per category and warn when you cross it.
This one is a good candidate for your GitHub profile because it solves a real problem and is easy to demo.
4. Password generator
Ask for a length and generate a strong random password from letters, digits and symbols.
What it teaches: the string module, the secrets module for secure random choices, input validation, functions with default values.
Use secrets, not random, for passwords. The Python documentation recommends secrets for security-related random values.
import secrets
import string
def make_password(length=12):
if length < 8:
raise ValueError("Use at least 8 characters")
chars = string.ascii_letters + string.digits + string.punctuation
return "".join(secrets.choice(chars) for _ in range(length))
print(make_password(16))
The output is different every time, for example a 16-character mix of letters, digits and symbols.
Stretch goal: make sure every password contains at least one uppercase letter, one lowercase letter, one digit and one symbol.
5. Quiz app
Load questions with options and correct answers from a JSON file, ask them one by one, and show the score at the end.
What it teaches: dictionaries and lists together, loops over structured data, keeping a score, separating data from code.
Stretch goal: shuffle the question order with random.shuffle, add a timer per question, and save each attempt's score with the date.
6. Word frequency counter
Read a text file and print the most common words and how often each appears.
What it teaches: string methods such as lower() and split(), removing punctuation, collections.Counter, reading files.
Here is the core of it:
from collections import Counter
import string
def word_counts(text):
# lower-case, remove punctuation, split into words
cleaned = text.lower().translate(str.maketrans("", "", string.punctuation))
return Counter(cleaned.split())
sample = "Python is easy. Python is fun, and Python is useful!"
for word, count in word_counts(sample).most_common(3):
print(word, count)
Output:
python 3
is 3
easy 1
Stretch goal: ignore common words like "the", "is" and "and", and read the file name from the command line with sys.argv.
To understand the counting part better, read our guide to Python dictionaries, since Counter is a special kind of dictionary.
7. Student grade report
Enter names and marks for several students. Print each student's total, average and grade, then the class topper and the class average.
What it teaches: functions with return values, lists of dictionaries, sorted() with a key, simple formatting with f-strings.
Stretch goal: read the marks from a CSV file and write the report to a new CSV file. Try building one list with a list comprehension.
8. Contact book with SQLite
Store contacts (name, phone, email) in an SQLite database. Add, search, update and delete contacts from a menu.
What it teaches: the built-in sqlite3 module, writing SQL (CREATE TABLE, INSERT, SELECT, UPDATE, DELETE), and using parameter placeholders (?) instead of building SQL strings by hand. Placeholders protect against SQL injection.
Watch out for: forgetting conn.commit() after changes, which means nothing is saved.
Stretch goal: prevent duplicate phone numbers with a UNIQUE constraint and show a friendly message when it fails.
This project is the closest to real backend work in the list. It is worth extending and putting on your resume.
9. File organiser
Point the script at a folder, such as Downloads, and it moves files into subfolders by type: Images, Documents, Videos, Others.
What it teaches: pathlib for paths, shutil.move, loops over folder contents, dictionaries that map file extensions to folder names.
Watch out for: two files with the same name. Check whether the target exists before moving, and test on a copy of a folder first.
Stretch goal: add a "dry run" option that prints what would move without moving anything.
10. Tic-tac-toe
Two players take turns on a 3 by 3 board in the terminal. The program shows the board, rejects invalid moves, and announces a win or a draw.
What it teaches: lists of lists, functions that check rows, columns and diagonals, game loops, input validation.
Stretch goal: add a simple computer player that blocks the human's winning move.
How to turn a mini project into portfolio proof
A finished small project on GitHub is worth more than ten tutorials watched. For each project:
- Use Git from the start. Commit after each working feature, with clear messages.
- Write a README with what it does, how to run it, sample output and what you learned. See how to write a good README.
- Handle bad input. Most beginner projects crash on unexpected input. Fixing this is the difference between a demo and a usable tool.
- Add one or two tests for the core function, using
unittestorpytest. - Do the stretch goal. It is your own work, not a tutorial copy, and gives you something to talk about in interviews.
Common mistake: Building a project by following a video line by line, then calling it your own. If you cannot rebuild it without the video, you have not learned it yet. Our guide on escaping tutorial hell shows a better method.
What to build after these
Once you finish four or five of these, you are ready for bigger work:
- A small web app with Flask or Django, for example the expense tracker with a web page and login
- A data project with pandas on a public dataset
- A command line tool that calls a public API and saves results
Two or three finished projects on GitHub are also what make an internship application stand out. See how to find internships for engineering students.
For the full path from here to a Python job, see the Python developer roadmap. Final-year students who need a larger project can pick from our final year projects for CSE.
Final word
Pick project 1 today and finish a first version before you start the next. Small, complete projects build confidence and real skill faster than one big project you never finish.
If you want guided practice, CodeBegun's Python full stack course runs in Madhapur, Hyderabad, and live online. A course can give structure and feedback, but the projects you build are your real proof.
Frequently Asked Questions
Which Python project is best for an absolute beginner?
Can I put mini projects on my resume?
Should I copy source code for these projects from the internet?
Do these projects need any libraries to install?
How long should a beginner spend on one mini project?
Want to Build Your Career in Java Full Stack with AI?
Join CodeBegun and train with working industry engineers — Discover CodeBegun's Java Full Stack track

