This is a Python project for calculating the highest value of consonant substrings in a lowercase string.
This project provides a Python function, solve, which calculates the highest value of consonant substrings in a given lowercase string. Consonants are any letters of the alphabet except "aeiou". Each consonant is assigned a value: a = 1, b = 2, c = 3, ..., z = 26.
- Calculate the highest value of consonant substrings
- Easy-to-use Python function
- Python (version 3.x)
- Git (optional, for version control)
-
Clone the repository:
git clone https://github.com/Shazz-Designing/ConsonantValue.git
-
Navigate to the project directory:
cd ConsonantValue -
Create and activate a virtual environment
python -m venv venv .\venv\Scripts\Activate # On Windows
-
Install the required dependencies:
pip install -r requirements.txt
-
Import the solve function from the app module:
from app import solve
-
Use the function to calculate the highest value of consonant substrings:
result = solve("zodiacs") print(f"The highest value of consonant substrings is: {result}")
Consider writing tests for your code using a testing framework like pytest. Organize your tests in a separate directory (e.g., tests/).
To run tests, use the following command:
pytest
Feel free to contribute to this project. Fork the repository, make your changes, and submit a pull reques
This project is licensed under the MIT License.