This repository contains 10 beginner-friendly Python projects, covering various fundamental programming concepts such as loops, conditionals, functions, and file handling. Each project is designed to help improve problem-solving skills and reinforce Python basics.
| # | Project | Description | Advanced Features |
|---|---|---|---|
| 1 | Number Guessing Game | Interactive number guessing with AI hints | Difficulty levels, Score system, Statistics |
| 2 | To-Do List | Task management with persistence | File storage (JSON), Priority levels, Statistics |
| 3 | Calculator | Advanced mathematical operations | Multiple operations, History, Continuous mode |
| 4 | Palindrome Checker | String palindrome detection | Batch processing, Regex validation |
| 5 | Fibonacci Generator | Fibonacci sequence with optimizations | Memoization, Performance comparison |
| 6 | Countdown Timer | Customizable countdown with alerts | Presets, Progress bars, Sound notifications |
| 7 | Password Generator | Secure password generation | Strength checker, Customization, Batch mode |
| 8 | Email Slicer | Email validation and analysis | Regex validation, Provider detection, Statistics |
| 9 | Rock Paper Scissors | Game with AI and scoring | Difficulty levels, Match tracking, Statistics |
| 10 | Quiz Game | Multi-category interactive quiz | Shuffled questions, Scoring, Multiple difficulties |
A classic guessing game with modern enhancements.
Features:
- ๐ฎ 3 Difficulty Levels: Easy (1-50), Medium (1-100), Hard (1-500)
- ๐ก Smart Hints: "Higher" or "Lower" guidance
- ๐ Score System: Points vary by difficulty
- ๐ Statistics Tracking: Win rate, total score, games played
- ๐ฏ Menu-Driven Interface
How to Play:
python 1-Number_Guessing_Game.pyKey Functions:
select_difficulty()- Choose game difficultyget_hint()- Provide helpful hintsplay_round()- Execute single gamedisplay_stats()- Show player statistics
Advanced task management system with persistent storage.
Features:
- ๐พ JSON File Storage: Automatically saves tasks
- โ Task Status Tracking: Mark tasks complete/pending
- ๐ท๏ธ Priority Levels: low, medium, high
- ๐ Statistics: Completion rate, task count
- โ๏ธ Full CRUD Operations: Create, Read, Update, Delete
How to Run:
python 2-To-do-List.pyMenu Options:
- Add Task (with priority)
- View All Tasks
- View Pending Tasks Only
- Mark Task Complete
- Update Task
- Delete Task
- View Statistics
Full-featured calculator with advanced operations.
Supported Operations:
- โ Addition (+)
- โ Subtraction (-)
- โ๏ธ Multiplication (*)
- โ Division (/)
- ๐ Modulus (%)
- ๐ข Power (**)
- โ Square Root
- % Percentage calculations
Features:
- ๐ Calculation History: View all previous calculations
- ๐ Continuous Mode: Multiple calculations without restarting
- โ Error Handling: Division by zero, invalid inputs
- ๐ฏ Clean Output: Formatted results
Advanced palindrome detection with multiple modes.
Features:
- ๐ค Case-Insensitive Checking: "Racecar" = "racecar"
- โก๏ธ Ignore Spaces & Punctuation: "A man, a plan, a canal: Panama"
- ๐ Batch Processing: Check multiple words at once
- ๐ Detailed Analysis: Character counts, reversed strings
- ๐ท๏ธ Multiple Modes: Single word, sentence, batch
Optimized Fibonacci generation with multiple algorithms.
Methods:
- ๐ Iterative Approach: Fast, memory-efficient
- ๐ Recursive with Memoization: Balanced performance
- ๐ Pure Recursive: Educational (slower)
Features:
- โก Performance Comparison: Compare algorithm speeds
- ๐ฏ Range Generation: Get Fibonacci numbers in a range
- ๐พ Memoization Cache: Optimized recursion
- ๐ Large Number Support: Generate high-index Fibonacci
Feature-rich countdown timer with presets.
Features:
- โฑ๏ธ Custom Duration: Any time in seconds or mm:ss format
- ๐ฏ Preset Timers: Pomodoro (25m), Short (5m), Study (45m)
- ๐ Progress Bar: Visual countdown display
- ๐ Audio Alerts: System bell when complete
- ๐ Timer Statistics: Track completed timers
Presets:
- Pomodoro: 25 minutes
- Short Break: 5 minutes
- Medium Break: 15 minutes
- Long Break: 30 minutes
Advanced password generation with security analysis.
Features:
- ๐ Customizable Options:
- Length (4-128 characters)
- Character types (uppercase, lowercase, digits, special)
- ๐ Strength Checker: Analyzes password security
- ๐ฏ Presets: Quick strong password generation
- ๐ฆ Batch Mode: Generate multiple passwords
- ๐ก Recommendations: Security improvement tips
Strength Levels:
- โ WEAK (0-2 points)
โ ๏ธ FAIR (3-4 points)- โ GOOD (5-6 points)
- ๐ STRONG (7+ points)
Comprehensive email validation and analysis.
Features:
- โ Regex Validation: RFC 5322 compliant
- ๐ Component Extraction: Username, domain, extension
- ๐ข Provider Detection: Gmail, Outlook, Yahoo, etc.
- ๐ Quality Metrics: Email analysis
- ๐ Batch Validation: Check multiple emails
- ๐ Statistics: Validity rate tracking
Extracted Information:
- Full email
- Username
- Domain
- Domain name
- Extension
Advanced game with AI and comprehensive tracking.
Features:
- ๐ฎ 3 Difficulty Levels:
- Easy: Random moves
- Medium: 30% strategic
- Hard: 60% strategic
- ๐ Score Tracking: Wins, losses, ties, win rate
- ๐ Game History: Review all previous rounds
- ๐ Statistics: Move distribution, performance analysis
- ๐ฏ Best of N: Play multiple-round matches
Interactive quiz with multiple categories and difficulties.
Features:
- ๐ 3 Categories:
- General Knowledge
- Science
- Technology
- ๐ 3 Difficulty Levels: Easy, Medium, Hard
- ๐ Question Shuffling: Randomized order
- ๐ Scoring System: Points vary by difficulty
- ๐ Statistics: Accuracy, total points, category performance
- ๐ฏ Progress Tracking: Current score display
Difficulty Points:
- Easy: 10 points
- Medium: 25 points
- Hard: 50 points
- Python 3.8+ - Modern Python features
- Standard Library: json, random, string, time, math, re, functools
- No External Dependencies - Pure Python implementations
- ๐๏ธ Object-Oriented Programming: Class-based architecture
- ๐ฆ Modular Design: Separated concerns
- ๐ DRY Principle: Don't Repeat Yourself
- ๐ฏ Single Responsibility: Each function does one thing well
- โ Comprehensive Error Handling: Try-except blocks
- ๐ Detailed Docstrings: Every function documented
- ๐ค PEP 8 Compliance: Clean, readable code
- ๐พ Data Persistence: JSON file storage
- ๐ Statistics & Analytics: Track metrics
- ๐จ User-Friendly UI: Clear formatted menus
By studying and using these projects, you'll learn:
- โ Variables, data types, operators
- โ Control flow (if/elif/else, loops)
- โ Functions and parameters
- โ Object-Oriented Programming (OOP)
- โ File I/O and JSON handling
- โ Exception handling and error management
- โ Regular expressions (regex)
- โ Data structures (lists, dictionaries, tuples)
- โ Algorithms and performance optimization
- โ Memoization and caching
- โ Clean code principles
- โ Code documentation
- โ User input validation
- โ Menu-driven interfaces
- โ Statistics and logging
- โ PEP 8 style guidelines
- โ Project organization
- โ User experience design
- โ Problem-solving approaches
- โ Debugging techniques
This project collection is open source and available for educational purposes.
To contribute improvements:
- Fork the repository
- Create a feature branch
- Make your improvements
- Submit a pull request
For questions or issues, please open a GitHub issue or contact the maintainer.
Thank you for using these Python mini projects. Happy coding! ๐
Last Updated: April 2024 Python Version: 3.8+ License: Open Source