Python Code Execution Guide

This guide will help you run the Python code in this repository.

Prerequisites

  • Python 3.x installed on your system
  • Virtual environment (venv) module installed

Setup

  1. Clone the repository to your local machine.
  2. Navigate to the project directory.

Create and Activate Virtual Environment

  1. Open a terminal or command prompt.
  2. Create a virtual environment by running the following command:
    python -m venv myenv
    
  3. Activate the virtual environment:
    • On Windows:
      myenv\Scripts\activate
      
    • On macOS and Linux:
      source myenv/bin/activate
      

Install Required Packages

  1. Make sure you are in the project directory and the virtual environment is activated.
  2. Install the required packages by running the following command:
    pip install -r requirements.txt
    

Run the Script

  1. Make sure you are in the project directory and the virtual environment is activated.
  2. Run the script by executing the following command:
    python script.py