FizzBuzz Python and Shell Script

This project includes a Python program that implements a simple FizzBuzz algorithm with customized output, along with a shell script to run the Python program with optional arguments.

FizzBuzz Logic

The program prints numbers from 1 to a given number n (defaults to 15 if no argument is provided). However, for numbers divisible by:

Files in the Project


How to Use

1. Run the Python Program Directly

You can run the Python program directly by executing:

python3 main.py [n]

from directory the file lives in or …

2. Run the Python Program with the Shell Script from the repo top level directory

./problems/fizzbuzz/python/bartzcarter/run.sh [n]

Testing

1. Run the Test Program Directly

You can run the Test program directly by executing:

python -m unittest test.py

from the directory the file lives in or …

2. Run Using the Shell Script From The /python/bartzcarter Directory

./run_tests.sh
Back to Carter's Page