Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/santhoshse7en/fizzbuzz

Simple Python program to get Fizz, Buzz and FizzBuzz
https://github.com/santhoshse7en/fizzbuzz

fizz-buzz fizzbuzz fizzbuzz-python python python3

Last synced: about 1 month ago
JSON representation

Simple Python program to get Fizz, Buzz and FizzBuzz

Awesome Lists containing this project

README

        

# FizzBuzz
Fizz buzz is a group word game for children to teach them about division. Players take turns to count incrementally, replacing any number divisible by three with the word "fizz", and any number divisible by five with the word "buzz"

## Fizz buzz Implementation

Simple python program which iterates the integers from 1 to 50. For multiples of three print "Fizz" instead of the number and for the multiples of five print "Buzz". For numbers which are multiples of both three and five print "FizzBuzz"

## Usage

Download it by clicking the green download button here on Github. You only need to parse argument of range you the divisible by 3, 5 and both.
```bash
python main.py --range 50

or

python main.py -r 50
```

## Output

![capture](https://user-images.githubusercontent.com/47944792/53887007-584fef00-4047-11e9-840e-cddb2e081210.PNG)

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License
[MIT](https://choosealicense.com/licenses/mit/)