We recommend starting with small Python programs you can finish in one sitting, like a calculator or a number guessing game. Then work up, in the order below, to programs that save files, pull web data and edit photos.
We picked projects that use free tools, need no paid account or API key and each add a new Python idea. For more, see our AI project ideas for high school students or passion project ideas.
Facts checked October 30, 2026.
What do you need to start coding in Python?
You need Python and a code editor, both free, or just a web browser on a school Chromebook. Our advice: install Thonny, which includes Python. Pair the projects with one free course so each idea comes just before a project uses it.
- Editor: Thonny, a free, open-source "Python IDE for beginners," comes with Python 3.14 built in. Install libraries from its Tools, then Manage packages menu, which uses Thonny's own Python.
- School Chromebook: Google Colab runs Python free in your browser if your school's administrator allows it. Its FAQ says idle virtual machines are deleted, so save lasting files, like project 15's log, to Google Drive.
- Course: CS50's Introduction to Programming with Python is free from Harvard and made for students "with or without prior programming experience."
Which Python projects should beginners start with?
Start with these six short programs. They use input(), print(), variables, if statements, loops, simple lists or dictionaries, and the random and time modules. By our estimate, each takes 1 to 3 hours, and none needs more than Python's standard library.
1. Simple calculator
Ask for two numbers and an operator, then print the answer.
- Practices: input(), float(), if/elif/else
- Libraries: none
- Time: 1-2 hours
- You'll have: a calculator that checks for zero before dividing
- Stretch: a running total and square roots from the math module
2. Number guessing game
The computer picks a number from 1 to 100 and says "too high" or "too low" until you guess it (worked example below).
- Practices: random numbers, while loops, comparisons, a counter
- Libraries: random
- Time: 1-2 hours
- You'll have: a game that counts your guesses
- Stretch: guess limits, plus try and except for typed words
3. Rock, paper, scissors
You type a move, the computer picks one at random, and the program names the winner.
- Practices: random.choice(), if/elif logic, a loop with a stop condition
- Libraries: random
- Time: 1-2 hours
- You'll have: a scored match that ends at three wins
- Stretch: a computer that plays what beats your favorite move
4. Dice rolling simulator
Roll two dice on each Enter press, then roll 10,000 times and count each total from 2 to 12.
- Practices: for loops, counting with a dictionary, percentages
- Libraries: random
- Time: 2-3 hours
- You'll have: about one 7 in every six rolls, since 6 of the 36 combinations make 7
- Stretch: chart your counts against the exact odds with matplotlib (project 15)
5. Countdown timer
Ask for a number of minutes, count down each second in the form 04:59 and print a message at zero.
- Practices: while loops, divmod(), formatted strings
- Libraries: time
- Time: about 1 hour
- You'll have: a timer for study sessions
- Stretch: 25-minute work blocks and 5-minute breaks, logged to a file
6. Grade calculator
Enter scores and weights by category from your syllabus, then print your weighted average and letter grade.
- Practices: lists, for loops, sum(), if/elif chains
- Libraries: none
- Time: 2-3 hours
- You'll have: a calculator set to your class's weights
- Stretch: the final exam score you need for a target grade
How do you build a number guessing game in Python?
Pick the secret once, before the loop. Then loop: read a guess, convert it to a whole number, count it and print "too high" or "too low" until it matches. While testing, fix the secret so you can check every hint by hand.
Build it
- Inputs: a secret from randint(1, 100), which can return 1, 100 or any whole number between (Python's random docs), and guesses from input().
- Conversion: input() returns a string, Python's docs say, so pass each guess to int(). Asking whether text is greater than a number raises a TypeError.
- Logic: before the loop, store the secret and set a counter to 0. Each pass reads a guess, adds 1 and prints "too low" or "too high"; a match prints the count and ends the loop with break.
Test and debug it
- Fix the secret: call random.seed(1) first and the secret is 18 every run, since the docs say a reused seed repeats the sequence.
- Trace a game: guesses of 50, 25, 12 and 18 should print "too high," "too high" and "too low," then report 4 guesses.
- Test the edges: 18 first should report 1 guess. Guesses of 0 and 101 get hints until you add a range check, and a word crashes int() with a ValueError.
- Common bug: contradicting hints, like "too low" at 60, then "too high" at 61. The randint() line sits inside the loop and picks a new secret each turn. Print the secret at the top of the loop or step through with Thonny's debugger (Ctrl+F5), then move that line above the loop.
Which Python projects come after the basics?
Next come five projects built from your own functions, with more string, list and dictionary work, at 2 to 10 hours each by our estimate. Write each step as a function, such as a win check, so you can test pieces separately.
7. Password generator
Ask for a length and character types, then build a password with the secrets module. Python's docs say random is "designed for modelling and simulation, not security or cryptography."
- Practices: strings, loops, functions with parameters
- Libraries: secrets and string
- Time: 2-3 hours
- You'll have: passwords that include every character type you picked
- Stretch: passphrases built from a word list
8. Morse code translator
Translate text into dots and dashes with a dictionary of letters, then flip the dictionary to translate back.
- Practices: dictionaries, upper(), split() and join(), dictionary comprehensions
- Libraries: none
- Time: 2-3 hours
- You'll have: a two-way translator that flags unknown characters
- Stretch: beeps saved as a WAV file with the wave, math and struct modules
9. Hangman
Pick a word from a list, show a blank per letter and reveal letters as the player guesses. Six misses lose.
- Practices: strings, sets, while loops, functions
- Libraries: random
- Time: 3-4 hours
- You'll have: a game that ignores repeated guesses
- Stretch: words from a file, with difficulty set by word length
10. Tic-tac-toe
Store the board as a list of nine squares and check all eight winning lines after each move.
- Practices: lists, functions, input validation
- Libraries: none
- Time: 4-8 hours
- You'll have: a two-player game that rejects taken squares and spots draws
- Stretch: a computer player, random at first, then unbeatable with minimax
11. Text adventure
Store rooms, exits and items in a dictionary, and let players type commands like "go north" or "take lamp."
- Practices: nested dictionaries, split(), game state, functions
- Libraries: none
- Time: 6-10 hours
- You'll have: a game of five or more rooms a friend can finish
- Stretch: save and reload games with the json module
Which Python projects use files and data?
File projects keep data between runs and read data you didn't type in. The csv and json modules handle the files, and matplotlib, a library you install with pip, draws charts. By our estimate, each takes 2 to 6 hours.
12. To-do list
Add, list, complete and delete tasks from a menu, saving them to a JSON file after each change.
- Practices: lists of dictionaries, menus in loops, reading and writing files
- Libraries: json and pathlib
- Time: 4-6 hours
- You'll have: a to-do list that remembers tasks between runs
- Stretch: due dates with datetime, or a tkinter window (not in Colab)
13. Quiz game
Load questions and answers from a CSV file saved from a spreadsheet, ask them in random order and keep score.
- Practices: reading CSV files, lists, shuffling, functions
- Libraries: csv and random
- Time: 4-6 hours
- You'll have: a quiz you can load with any class's material
- Stretch: replay each player's missed questions first
14. Word counter
Count a text file's lines, words and characters, then list its 10 most common words, skipping filler like "the."
- Practices: reading files, cleaning text, dictionaries
- Libraries: collections (its Counter class) and string
- Time: 2-4 hours
- You'll have: your most-used words in essays saved as plain text
- Stretch: average sentence length by school year
15. Habit tracker
Log one number a day, such as hours of sleep, to a CSV file. After two weeks, report your average, best and worst days with a line chart.
- Practices: appending to files, dates, averages, plotting
- Libraries: csv, datetime and statistics, then matplotlib
- Time: 3-4 hours, plus two weeks of logging
- You'll have: a chart and summary of your own data
- Stretch: plot a second number, such as screen time, against the first. Two weeks of your data can suggest a pattern but can't prove a cause.
Which Python projects use the internet?
Internet projects request a page or data from a web service and read the HTML or JSON that comes back. The three sites below are free, need no account or API key and, by our estimate, take 3 to 8 hours each. Python's urllib.request is enough; the requests library, installed with pip, shortens the code.
16. Weather app
Pick a city from a dictionary of coordinates and fetch its current temperature, wind speed and next 12 hours. Add forecast_hours=12 and timezone=auto to the URL, or hourly data starts at midnight GMT, per Open-Meteo's docs.
- Service: Open-Meteo needs "no API key, no sign-up, no credit card." Its terms allow free non-commercial use under 10,000 calls a day, credited under CC BY 4.0, and set no age limit.
- Practices: URLs with parameters, JSON, dictionaries, handling a failed connection
- Libraries: urllib.request and json, or requests
- Time: 4-6 hours
- You'll have: a command-line forecast for your town that credits Open-Meteo
- Stretch: any city by name through Open-Meteo's geocoding API (no key for non-commercial use)
17. Currency converter
Ask for an amount and two currency codes, fetch the rate from Frankfurter and multiply. Rates update once a day, so they aren't live market prices.
- Service: Frankfurter is free, open source and keyless, with no quotas, though it rate-limits requests; it lists no age limit.
- Practices: JSON, functions, validating input
- Libraries: urllib.request and json, or requests
- Time: 3-5 hours
- You'll have: a converter that catches mistyped currency codes
- Stretch: a one-year chart against the dollar from Frankfurter's past rates
18. Web scraper
Books to Scrape is a fictional store built as "a safe place for beginners learning web scraping." Save each book's title, price and star rating to a CSV file.
- Service: no account or key; the sandbox lists no terms or age limit
- Practices: HTML structure, following "next" links across pages, writing CSV
- Libraries: urllib.request and html.parser, or pip-installed requests and Beautiful Soup
- Time: 5-8 hours
- You'll have: a spreadsheet of all 1,000 books on the site
- Stretch: average price by star rating. Our rule for real sites: check robots.txt and the terms first, and wait a second between requests.
What are harder Python projects for high school students?
These combine skills from the earlier groups into one larger program, at 8 to 20 hours each by our estimate. Two need add-on libraries installed with pip. We'd finish one project from each earlier group first, so files, functions and JSON feel familiar.
19. Photo editor
Open an image, offer grayscale, rotate, resize, blur and border options, and save each result as a new file.
- Practices: files and folders, functions, pixel coordinates
- Libraries: pathlib, then Pillow (install "pillow," import it as PIL)
- Time: 8-12 hours
- You'll have: an editor that never overwrites your originals
- Stretch: edit a whole folder, or write a sepia filter pixel by pixel
20. Sentiment analyzer
Score sentences with VADER, part of the NLTK library; NLTK's examples give "The book was good." a compound score of 0.4404. Label 50 reviews yourself and count how often VADER agrees, using its authors' cutoffs: 0.05 and up is positive, -0.05 and below negative.
- Practices: lists of dictionaries, using a library, measuring accuracy
- Libraries: csv, then NLTK (pip install, then download its vader_lexicon data)
- Time: 10-15 hours
- You'll have: an accuracy score and VADER's misses, sorted by cause (sarcasm, slang)
- Stretch: a scikit-learn classifier; start with our machine learning guide for high school students
21. Portfolio website
Write a script that turns one text file per project into HTML pages and a home page, then publish them on GitHub Pages. Publish no API keys: GitHub's security guide says never to push them to any repository, "even if the repository is private."
- Service: GitHub Pages is free for public repositories on GitHub Free; GitHub's terms require users to be 13 or older.
- Practices: looping over files, string templates, writing files
- Libraries: pathlib and string (its Template class), plus HTML and CSS
- Time: 12-20 hours
- You'll have: a live github.io site listing your projects
- Stretch: a script that checks every link before you publish
In our Nova Product Launch program, students pick a real problem and build an AI-powered app, website or game to solve it.
How do you pick a Python project and finish it?
Pick the first project that uses one idea you haven't learned yet, and finish its base version before the stretch. Our advice: give each project a deadline, such as one weekend, and cut features rather than let it drag on.
- Never coded: projects 1, 2 and 5, alongside the first three weeks of CS50's Python course (functions, conditionals, loops)
- Coded in Scratch or a class: project 2 for Python's syntax, then straight to 7 to 11
- Need science fair data: projects 4, 15 and 20
Frequently asked questions
Is Python used in AP Computer Science?
Not in AP Computer Science A, which uses "a subset of the Java programming language," according to the College Board. AP Computer Science Principles has "no designated programming language," says its course FAQ, so teachers pick one, possibly Python. Your Create performance task can use any programming language, but the exam shows code in the College Board's own text and block formats.
Can you use AI to write your Python projects?
Our advice: if your school and the tool's age rules allow it, ask AI to explain an error or idea, then write the code yourself. Competitions set limits: the 2026 rules of the Congressional App Challenge allowed AI if "fully disclosed," but not as "the entirety of the technical development."
Can middle school students do these projects?
Yes: in our view, most middle schoolers can handle the first group in Thonny, which needs no account. Colab needs a Google account, which you must be 13 to manage yourself in the US, though Google says school accounts may differ. Project 21 needs a GitHub account, also 13 and up.