Getting Started
H9A is an installable Python package that provides a h9a command and an importable library. This guide takes you from a clean environment to your first run.
Prerequisites
- Python 3.8 or later
pip(usually bundled with Python)git(to clone the repository)
Install the package
git clone https://github.com/rkriad585/h9a.git
cd h9a
python -m pip install .[screenshot]
The .[screenshot] extra installs Pillow so you can generate screenshots. If you only want to run the tool, python -m pip install . is enough.
See installation.md for more details.
Run H9A
h9a
If the h9a command is not on your PATH, run it as a module:
python -m h9a
Expected output
_ _ ___ _
| | | |/ _ \ / \
| |_| | (_) |/ _ \
| _ |\__, / ___ \
|_| |_| /_/_/ \_\
How Many 9 In 1 to 100
Calculating step by step...
Step 2: 9 appears 10 times in the ones place.
Step 3: 9 appears 10 times in the tens place.
Step 4: Total occurrences of 9 = 20.
Explanation:
1. In the ones place: The digit 9 appears in numbers like 9, 19, 29, ..., 99.
2. In the tens place: The digit 9 appears in numbers like 90, 91, 92, ..., 99.
3. Total occurrences are calculated by adding these together.
Final Result: In the range 1 to 100, the digit '9' appears 20 times!
Next steps
- usage.md — detailed explanation of the output and options
- cli.md — command-line interface reference
- api.md — using H9A as a Python library
- architecture.md — how the package is structured