My python implementation of FizzBuzz, a childhood game turned interview question
Requirements:
- Python >= 3.7
- Poetry >= 1.21
- Git
To use the program the intended way, you must first install it by running one of the following code snippets, depending on your os and terminal.
git clone https://github.com/tinkering-towsperson/fizzbuzz
cd fizzbuzz
poetry config virtualenvs.create false --local
py -m venv .venv
call .\.venv\Scripts\activate.bat
poetry env use .\.venv\Scripts\python.exe
poetry install
git clone https://github.com/tinkering-towsperson/fizzbuzz
cd fizzbuzz
poetry config virtualenvs.create false --local
py -m venv .venv
.\.venv\Scripts\Activate.ps1
poetry env use .\.venv\Scripts\python.exe
poetry install
git clone https://github.com/tinkering-towsperson/fizzbuzz
cd fizzbuzz
poetry config virtualenvs.create false --local
source ./.venv/Scripts/activate
poetry env use ./.venv/Scripts/python
poetry install
After installation, you can run it with default options by running the following:
poetry run fizzbuzz
And for the help message, just run:
poetry run fizzbuzz -h
Footnotes
-
Installing poetry 1.2:
*nix(MacOS X/Linux/Unix):
curl -sSL https://install.python-poetry.org | python3 - --preview
Windows(Powershell):
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py - --preview
For more information visit https://python-poetry.org/docs/master/#installing-with-the-official-installer ↩