This is a simple Python application that prints a colorful "Hello, World!" message using the termcolor library.
- Python 3.x
It's recommended to use a virtual environment to manage dependencies for this project. Here's how to set it up:
-
Open a terminal and navigate to the project directory.
-
Create a virtual environment:
python -m venv venv -
Activate the virtual environment:
- On Windows:
venv\Scripts\activate - On macOS and Linux:
source venv/bin/activate
- On Windows:
-
Your prompt should change to indicate that the virtual environment is active.
-
Clone this repository or download the source code.
-
Activate the virtual environment as described above.
-
Install the required package using pip:
pip install -r requirements.txt
To run the Hello World application, make sure your virtual environment is activated, then use the following command in your terminal:
python hello_world.py
You should see a colorful "Hello, World!" message printed in your terminal.
The application uses the termcolor library to print "Hello, World!" in green text with a blue background and bold formatting.
hello_world.py: The main Python script that prints the Hello World message.requirements.txt: Lists the required Python packages (termcolor in this case).README.md: This file, containing instructions and information about the project.
When you're done working on the project, you can deactivate the virtual environment by running:
deactivate
This will return you to your global Python environment.