This repository contains various Python mini projects aimed at improving Python skills. Each project is designed to be simple yet educational, covering different aspects of Python programming.
- Finance Calculator
A program to calculate monthly and yearly income after tax deductions and expenses. - Expense Splitter
A tool to split expenses among multiple people based on their respective shares. - Word Frequency Counter
A program to analyze a text file and display the top 10 most frequent words. - Simple Notepad
A basic text editor with save, save as, and load functionality. - Website Status Checker
A tool to check the status of a website, including its response time, server type, and content type. - Currency Converter
A tool to convert between different currencies using real-time exchange rates. - Password Generator
Generates secure random passwords with customizable length, uppercase, and symbols. Also checks password strength. - Text Analyser
Analyzes a text file and provides statistics such as word count, unique words, paragraph count, and frequent words. - Morse Code Converter
Converts text to Morse code and Morse code back to text. - Chat Bot
An intelligent chatbot that uses string similarity matching to respond to user input. Can tell time, respond to greetings, and handle various conversational topics.
- Python 3.x: Make sure you have Python installed on your system. You can download it from python.org.
- Clone the repository:
git clone https://github.com/yourusername/python_mini_projects.git
- Navigate to the project directory:
cd python_mini_projects
- Navigate to the Finance Calculator directory:
cd 1.Finance_Calculator - Run the program:
py main.py
- Navigate to the Expense Splitter directory:
cd 2.Expense_Splitter - Run the program:
py main.py
- Navigate to the Word Frequency Counter directory:
cd 3.Word_Frequency - Run the program:
py main.py
- Select a text file when prompted (e.g.,
example.txt).
- Navigate to the Simple Notepad directory:
cd 4.Notepad - Run the program:
py main.py
- Navigate to the Website Status Checker directory:
cd 5.Website_Status - Run the program:
py main.py
- Enter the URL of the website you want to check (e.g.,
https://example.com).
- Get a free API key from ExchangeRate-API:
- Sign up for a free account
- Copy your API key
- Navigate to the Currency Converter directory:
cd "6.Currency Converter"
- Open
main.pyand replaceYOUR_API_KEY_HEREwith your actual API key:API_KEY = "your_actual_api_key_here"
- Install required packages (if not already installed):
pip install requests
- Run the program:
py main.py
- Follow the prompts to convert between currencies.
- Navigate to the Password Generator directory:
cd "7.Password_Generator"
- Run the program:
py main.py
- The program will generate random passwords and display their strength.
- Navigate to the Text Analyser directory:
cd "8. Text Analyser"
- Run the program:
py main.py
- The program will analyze
sample.txtand display statistics about the text.
- Navigate to the Morse Code Converter directory:
cd "9. Morse Code Converter"
- Run the program:
py main.py
- Enter text to convert to Morse code or decode Morse code back to text.
-
Navigate to the Chat Bot directory:
cd "10. Chat Bot"
-
Run the program:
py main.py
-
Start chatting with the bot! Try phrases like:
"hello"or"hi"for greetings"what time is it"to get the current time"help"for usage instructions"exit","quit", or"stop"to end the conversation
-
The bot uses similarity matching to understand your input and will show the similarity percentage for each response.
Feel free to fork this repository and contribute by submitting a pull request. Any contributions, whether it's improving existing projects or adding new ones, are welcome!
This project is licensed under the MIT License - see the LICENSE file for details.