A neat command-line application to demonstrate Python syntax.
Fizz buzz is a group word game for children to teach them about division. Players take turns to count incrementally, with the following rules:
- For numbers divisible by
3, sayfizz. - For numbers divisible by
5, saybuzz. - For numbers is divisible by both, say
fizzbuzz. - For other numbers, say the number.
1
2
fizz
4
buzz
fizz
7
8
fizz
10
11
fizz
13
14
fizzbuzz
- Clone the repository.
- Add exec permissions to the
bin/fizzbuzzfile;chmod +x ./bin/fizzbuzz. - Run it with a numeric argument;
./bin/fizzbuzz 15.
If you use Lando, you can run this project in a Docker container instead.
- Clone this repository and
cdinto the directory. - Run
lando start. - Run
lando fizzbuzzwith a numeric argument;lando fizzbuzz 15.