Skip to content

vanshchaudhary324/Python-Mini-Projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Overview vansh chaudhary is a lightweight and user-friendly tool designed to create acronyms from user-provided phrases or sentences. It processes the input by extracting the first letter of each word and combining them into a single acronym. This tool is ideal for students, professionals, or anyone looking to create concise abbreviations for long phrases, such as in project naming, educational contexts, or branding. Features

Vansh chaudhary Creation: Automatically generates acronyms by taking the first letter of each word in the input phrase. Input Flexibility: Handles spaces, special characters, and mixed-case inputs gracefully. Error Handling: Provides feedback for invalid inputs (e.g., empty strings or non-alphabetic characters). Cross-Platform: Can be run on any system with a compatible programming environment. Lightweight: Minimal dependencies and simple codebase for easy maintenance.

Installation

Clone the RepositoryClone this project to your local machine using: git clone https://github.com/vansh-chaudhary/acronyms-generator.git

Navigate to the Project Directory cd acronyms-generator

Install DependenciesThis project requires Python 3.x. Ensure Python is installed, then install any required dependencies: pip install -r requirements.txt

(Note: If there are no external dependencies, this step can be skipped.)

Usage

Run the ProgramExecute the main script using Python: python acronyms_generator.py

Enter a PhraseWhen prompted, input a phrase (e.g., "National Aeronautics and Space Administration").
View the OutputThe program will display the acronym (e.g., "NASA").

Example

Input: "Random Access Memory"
Output: "RAM"
Input: "World Health Organization"
Output: "WHO"

Project Structure

acronyms_generator.py - Main script containing the acronym generation logic. requirements.txt - List of dependencies (if any). README.md - Project documentation. LICENSE - License file for the project.

Author

Name: Vansh Chaudhary
GitHub: github.com/vansh-chaudhary
Email: vansh.chaudhary@example.com

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

Inspired by the need for quick acronym generation in academic and professional settings. Thanks to the open-source community for providing tools and libraries that make projects like this
possible.

BMI Calculator Overview The BMI Calculator is a simple and efficient tool designed to calculate a user's Body Mass Index (BMI) based on their weight and height. It provides an easy way to assess whether a person falls within a healthy weight range, making it useful for fitness enthusiasts, healthcare professionals, or anyone interested in monitoring their health metrics. The tool also categorizes the BMI result into standard health categories such as underweight, normal, overweight, or obese. Features

BMI Calculation: Computes BMI using the formula: BMI = weight (kg) / (height (m))^2. Unit Flexibility: Supports input in both metric (kg, m) and imperial (lbs, ft/in) units with automatic conversion. Category Output: Classifies the BMI into categories (e.g., Underweight, Normal, Overweight, Obese). Input Validation: Ensures valid numerical inputs and provides error messages for incorrect data. User-Friendly Interface: Simple command-line or GUI interface (depending on implementation) for ease of use.

Installation

Clone the RepositoryClone this project to your local machine using: git clone https://github.com/vansh-chaudhary/bmi-calculator.git

Navigate to the Project Directory cd bmi-calculator

Install DependenciesThis project requires Python 3.x. Ensure Python is installed, then install any required dependencies: pip install -r requirements.txt

(Note: If there are no external dependencies, this step can be skipped.)

Usage

Run the ProgramExecute the main script using Python: python bmi_calculator.py

Select Unit SystemChoose between metric (kg, m) or imperial (lbs, ft/in) units when prompted.
Enter Your Weight and HeightInput your weight and height as requested (e.g., 70 kg and 1.75 m for metric).
View the ResultThe program will display your BMI and its corresponding category.

Example

Input (Metric): Weight = 70 kg, Height = 1.75 m
Output: Your BMI is: 22.86 Category: Normal

Input (Imperial): Weight = 154 lbs, Height = 5 ft 9 in
Output: Your BMI is: 22.74 Category: Normal

Project Structure

bmi_calculator.py - Main script containing the BMI calculation logic. requirements.txt - List of dependencies (if any). README.md - Project documentation. LICENSE - License file for the project.

Author

Name: Vansh Chaudhary
GitHub: github.com/vansh-chaudhary342
Email: vanshchaudhary91165gmail.com

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

Inspired by the need for accessible health tools for personal fitness tracking. Thanks to the open-source community for providing resources and libraries that support projects like this Color Text Printer Overview The Color Text Printer is a creative utility designed to print text in various colors on the terminal or console. It enhances the visual appeal of command-line outputs by allowing users to display messages in different colors, making it ideal for developers creating interactive scripts, educational tools, or fun projects that require styled text output. Features

Color Support: Prints text in multiple colors such as red, green, blue, yellow, and more. Cross-Platform Compatibility: Works on terminals that support ANSI color codes (e.g., Linux, macOS, and Windows with compatible terminals). Customizable: Allows users to select colors for their text via simple inputs or predefined settings. Lightweight: Minimal dependencies, ensuring fast execution and easy integration. Error Handling: Gracefully handles unsupported terminals or invalid color inputs.

Installation

Clone the RepositoryClone this project to your local machine using: git clone https://github.com/vansh-chaudhary/color-text-printer.git

Navigate to the Project Directory cd color-text-printer

Install DependenciesThis project requires Python 3.x. Ensure Python is installed, then install any required dependencies: pip install -r requirements.txt

(Note: If using a library like colorama for cross-platform support, it will be listed in requirements.txt. Otherwise, this step can be skipped.)

Usage

Run the ProgramExecute the main script using Python: python color_text_printer.py

Enter Your TextInput the text you want to display (e.g., "Hello, World!").
Select a ColorChoose a color from the available options (e.g., red, green, blue) when prompted.
View the OutputThe program will display your text in the selected color on the terminal.

Example

Input: Text = "Hello, World!", Color = "red"
Output: [Red-colored text in terminal]: Hello, World!

Input: Text = "Success!", Color = "green"
Output: [Green-colored text in terminal]: Success!

Project Structure

color_text_printer.py - Main script containing the logic for printing colored text. requirements.txt - List of dependencies (e.g., colorama if used). README.md - Project documentation. LICENSE - License file for the project.

Author

Name: Vansh Chaudhary
GitHub: github.com/vansh-chaudhary
Email: vansh.chaudhary@example.com

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

Inspired by the need for visually engaging terminal outputs in scripting projects. Special thanks to the developers of libraries like colorama for enabling cross-platform colored text support. Gratitude to the open-source community for their continuous contributions. Dice Roller Overview The Dice Roller is a simple and interactive tool designed to simulate rolling one or more dice. It generates random numbers to mimic the outcome of rolling physical dice, making it a handy utility for board games, role-playing games (RPGs) like Dungeons & Dragons, or educational purposes where random number generation is needed. Features

Customizable Dice: Roll any number of dice with a user-defined number of sides (e.g., d6, d20). Multiple Rolls: Supports rolling multiple dice at once and displays individual results and their sum. Randomization: Uses a secure random number generator for fair and unbiased results. User-Friendly Interface: Simple command-line interface for quick dice rolling. History Tracking: Optionally keeps a history of recent rolls for reference (if implemented).

Installation

Clone the RepositoryClone this project to your local machine using: git clone https://github.com/vansh-chaudhary/dice-roller.git

Navigate to the Project Directory cd dice-roller

Install DependenciesThis project requires Python 3.x. Ensure Python is installed, then install any required dependencies: pip install -r requirements.txt

(Note: If there are no external dependencies, this step can be skipped.)

Usage

Run the ProgramExecute the main script using Python: python dice_roller.py

Specify Dice DetailsInput the number of dice and the number of sides per die (e.g., 2 dice with 6 sides each for a standard d6 roll).
Roll the DiceThe program will generate random numbers for each die and display the results along with their total.

Example

Input: Number of dice = 2, Sides per die = 6
Output: Rolling 2d6... Die 1: 4 Die 2: 3 Total: 7

Input: Number of dice = 1, Sides per die = 20
Output: Rolling 1d20... Die 1: 15 Total: 15

Project Structure

dice_roller.py - Main script containing the dice rolling logic. requirements.txt - List of dependencies (if any). README.md - Project documentation. LICENSE - License file for the project.

Author

Name: Vansh Chaudhary
GitHub: github.com/vansh-chaudhary
Email: vansh.chaudhary@example.com

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

Inspired by the need for a digital dice roller for tabletop gaming sessions. Thanks to the Python community for providing robust random number generation libraries. Gratitude to the open-source community for their continuous support and resources.

Echo Chatbot Overview The Echo Chatbot is a minimalistic conversational tool designed to repeat or "echo" user inputs. It serves as a foundational project for understanding the basics of chatbot development, including user input handling and response generation. This project is perfect for beginners learning to build interactive applications or for use in testing input-output workflows in a conversational format. Features

Echo Functionality: Repeats the user's input exactly as entered, simulating a basic conversational loop. Continuous Interaction: Keeps the conversation going until the user chooses to exit. Custom Exit Command: Allows users to terminate the chat session with a predefined command (e.g., "exit" or "quit"). Input Validation: Handles empty or invalid inputs gracefully with appropriate feedback. Simple Interface: Command-line based for ease of use and minimal setup.

Installation

Clone the RepositoryClone this project to your local machine using: git clone https://github.com/vansh-chaudhary/echo-chatbot.git

Navigate to the Project Directory cd echo-chatbot

Install DependenciesThis project requires Python 3.x. Ensure Python is installed, then install any required dependencies: pip install -r requirements.txt

(Note: If there are no external dependencies, this step can be skipped.)

Usage

Run the ProgramExecute the main script using Python: python echo_chatbot.py

Start ChattingType a message, and the chatbot will echo it back to you.
Exit the ChatType the exit command (e.g., "exit") to terminate the session.

Example

Input: "Hello, how are you?"
Output: Echo Chatbot: Hello, how are you?

Input: "This is a test!"
Output: Echo Chatbot: This is a test!

Input: "exit"
Output: Echo Chatbot: Goodbye!

Project Structure

echo_chatbot.py - Main script containing the chatbot logic. requirements.txt - List of dependencies (if any). README.md - Project documentation. LICENSE - License file for the project.

Author

Name: Vansh Chaudhary
GitHub: github.com/vansh-chaudhary
Email: vansh.chaudhary@example.com

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

Inspired by the desire to create a simple conversational tool for learning purposes. Thanks to the Python community for providing robust tools for building interactive applications. Gratitude to the open-source community for their continuous support and resources.

Email Slicer Overview The Email Slicer is a utility tool designed to break down an email address into its core components: the username and the domain. This project is useful for educational purposes, data analysis, or automation tasks where email parsing is required. It provides a simple way to extract meaningful parts of an email address for further processing or analysis. Features

Email Parsing: Splits an email address into username and domain (e.g., "user@example.com" into "user" and "example.com"). Input Validation: Ensures the email address is in a valid format before processing. Error Handling: Provides clear error messages for invalid email formats (e.g., missing "@" symbol). Lightweight: Minimal dependencies, making it easy to integrate into larger projects. User-Friendly: Simple command-line interface for quick email slicing.

Installation

Clone the RepositoryClone this project to your local machine using: git clone https://github.com/vansh-chaudhary/email-slicer.git

Navigate to the Project Directory cd email-slicer

Install DependenciesThis project requires Python 3.x. Ensure Python is installed, then install any required dependencies: pip install -r requirements.txt

(Note: If there are no external dependencies, this step can be skipped.)

Usage

Run the ProgramExecute the main script using Python: python email_slicer.py

Enter an Email AddressInput the email address you want to slice (e.g., "john.doe@example.com").
View the OutputThe program will display the username and domain extracted from the email.

Example

Input: "john.doe@example.com"
Output: Username: john.doe Domain: example.com

Input: "test.user@website.org"
Output: Username: test.user Domain: website.org

Input: "invalid-email"
Output: Error: Please enter a valid email address.

Project Structure

email_slicer.py - Main script containing the email slicing logic. requirements.txt - List of dependencies (if any). README.md - Project documentation. LICENSE - License file for the project.

Author

Name: Vansh Chaudhary
GitHub: github.com/vansh-chaudhary342
Email: vansh.chaudhary91165gmail.com

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

Inspired by the need for email parsing in automation and data analysis projects. Thanks to the Python community for providing tools and libraries for string manipulation. Gratitude to the open-source community for their continuous support and resources.

Fahrenheit Celsius Converter Overview The Fahrenheit Celsius Converter is a straightforward tool designed to convert temperatures between Fahrenheit and Celsius scales. This utility is ideal for students, travelers, or anyone needing to quickly convert temperature values for weather, cooking, or scientific purposes. It provides an easy and accurate way to switch between the two temperature scales with a simple interface. Features

Bidirectional Conversion: Converts temperatures from Fahrenheit to Celsius and vice versa. Accurate Calculations: Uses standard formulas:
Fahrenheit to Celsius: °C = (°F - 32) * 5/9
Celsius to Fahrenheit: °F = (°C * 9/5) + 32

Input Validation: Ensures valid numerical inputs and provides error messages for incorrect data. User-Friendly Interface: Command-line based for simplicity and ease of use. Rounding Option: Rounds the result to a specified number of decimal places for readability (e.g., 2 decimal places).

Installation

Clone the RepositoryClone this project to your local machine using: git clone https://github.com/vansh-chaudhary/fahrenheit-celsius-converter.git

Navigate to the Project Directory cd fahrenheit-celsius-converter

Install DependenciesThis project requires Python 3.x. Ensure Python is installed, then install any required dependencies: pip install -r requirements.txt

(Note: If there are no external dependencies, this step can be skipped.)

Usage

Run the ProgramExecute the main script using Python: python fahrenheit_celsius_converter.py

Select Conversion TypeChoose whether to convert from Fahrenheit to Celsius or Celsius to Fahrenheit.
Enter the TemperatureInput the temperature value you want to convert (e.g., 32°F or 0°C).
View the ResultThe program will display the converted temperature.

Example

Input: Convert 32°F to Celsius
Output: 32°F is equal to 0.00°C

Input: Convert 100°C to Fahrenheit
Output: 100°C is equal to 212.00°F

Input: Invalid input (e.g., "abc")
Output: Error: Please enter a valid numerical temperature.

Project Structure

fahrenheit_celsius_converter.py - Main script containing the temperature conversion logic. requirements.txt - List of dependencies (if any). README.md - Project documentation. LICENSE - License file for the project.

Author

Name: Vansh Chaudhary
GitHub: github.com/vansh-chaudhary
Email: vansh.chaudhary@example.com

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

Inspired by the need for a quick and reliable temperature conversion tool for everyday use. Thanks to the Python community for providing tools for numerical computations. Gratitude to the open-source community for their continuous support and resources.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages