How to use the Python Mini Projects
- 1. Pick a projectFilter by Beginner or Intermediate.
- 2. Run itType answers for input() in the Input box, one per line, and press Run.
- 3. Make it yoursChange the code, add a feature and run it again. Download the .py file.
The projects
8 beginner and 4 intermediate projects, each a complete program of 15–40 lines:
- Beginner: number guessing game, simple calculator, to-do list manager, password generator (using the secure secrets module), rock-paper-scissors, word frequency counter, unit converter and bill splitter.
- Intermediate: loan EMI calculator with a repayment schedule, multiple-choice quiz game, student grade report and a contact book that validates Indian mobile numbers with a regular expression.
Each project lists the concepts it practises, such as while loops, dictionaries, f-strings, functions, Counter or regex, so you know what you are learning. The code runs with real Python 3 in your browser through Pyodide, which loads once (about 10 MB) and then runs offline from your browser's cache.
Worked example and ideas to extend
Open Loan EMI calculator. Its Input box holds three lines: 500000, 10 and 60, meaning ₹5,00,000 at 10% a year for 60 months. Run it and the output starts:
Monthly EMI: ₹10,623.52
Total interest: ₹137,411.34followed by the first three rows of the schedule. The program uses the standard EMI formula; the interest rate is whatever you type, so use the rate your bank actually quotes.
Ideas to take each project further, which make good portfolio pieces:
- Save the to-do list or contacts to a JSON file so they survive a restart.
- Add a high-score table to the guessing game.
- Turn the quiz into a web app with Flask, or the calculator into a GUI with tkinter.
Frequently asked questions
Why does it say I gave too little input?
Each input() reads the next line from the Input box. Add more lines if the program asks more questions.
Can I use these in my portfolio?
Yes, as practice. Extend them with your own features and explain your changes in a README.
Does random work?
Yes. Games give different results each run.
Do I have to pay for the python mini projects?
No, it is free. Running your first project asks for your name and WhatsApp number one time only. Then the python mini projects and all other Uncodemy tools stay open for you with no form.