Skip to content

IamVatsal/python_mini_projects

Repository files navigation

Python Mini Projects

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.

Projects

  1. Finance Calculator
    A program to calculate monthly and yearly income after tax deductions and expenses.
  2. Expense Splitter
    A tool to split expenses among multiple people based on their respective shares.
  3. Word Frequency Counter
    A program to analyze a text file and display the top 10 most frequent words.
  4. Simple Notepad
    A basic text editor with save, save as, and load functionality.
  5. Website Status Checker
    A tool to check the status of a website, including its response time, server type, and content type.
  6. Currency Converter
    A tool to convert between different currencies using real-time exchange rates.
  7. Password Generator
    Generates secure random passwords with customizable length, uppercase, and symbols. Also checks password strength.
  8. Text Analyser
    Analyzes a text file and provides statistics such as word count, unique words, paragraph count, and frequent words.
  9. Morse Code Converter
    Converts text to Morse code and Morse code back to text.
  10. 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.

Prerequisites

  • Python 3.x: Make sure you have Python installed on your system. You can download it from python.org.

Installation

  1. Clone the repository:
    git clone https://github.com/yourusername/python_mini_projects.git
  2. Navigate to the project directory:
    cd python_mini_projects

Running the Projects

Finance Calculator

  1. Navigate to the Finance Calculator directory:
    cd 1.Finance_Calculator
  2. Run the program:
    py main.py

Expense Splitter

  1. Navigate to the Expense Splitter directory:
    cd 2.Expense_Splitter
  2. Run the program:
    py main.py

Word Frequency Counter

  1. Navigate to the Word Frequency Counter directory:
    cd 3.Word_Frequency
  2. Run the program:
    py main.py
  3. Select a text file when prompted (e.g., example.txt).

Simple Notepad

  1. Navigate to the Simple Notepad directory:
    cd 4.Notepad
  2. Run the program:
    py main.py

Website Status Checker

  1. Navigate to the Website Status Checker directory:
    cd 5.Website_Status
  2. Run the program:
    py main.py
  3. Enter the URL of the website you want to check (e.g., https://example.com).

Currency Converter

  1. Get a free API key from ExchangeRate-API:
    • Sign up for a free account
    • Copy your API key
  2. Navigate to the Currency Converter directory:
    cd "6.Currency Converter"
  3. Open main.py and replace YOUR_API_KEY_HERE with your actual API key:
    API_KEY = "your_actual_api_key_here"
  4. Install required packages (if not already installed):
    pip install requests
  5. Run the program:
    py main.py
  6. Follow the prompts to convert between currencies.

Password Generator

  1. Navigate to the Password Generator directory:
    cd "7.Password_Generator"
  2. Run the program:
    py main.py
  3. The program will generate random passwords and display their strength.

Text Analyser

  1. Navigate to the Text Analyser directory:
    cd "8. Text Analyser"
  2. Run the program:
    py main.py
  3. The program will analyze sample.txt and display statistics about the text.

Morse Code Converter

  1. Navigate to the Morse Code Converter directory:
    cd "9. Morse Code Converter"
  2. Run the program:
    py main.py
  3. Enter text to convert to Morse code or decode Morse code back to text.

Chat Bot

  1. Navigate to the Chat Bot directory:

    cd "10. Chat Bot"
  2. Run the program:

    py main.py
  3. 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
  4. The bot uses similarity matching to understand your input and will show the similarity percentage for each response.

Contributing

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!

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

For Python Mini Projects and Learning Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages