Skip to main content

Python package which prints Fizz, Buzz, FizzBuzz divisible by 3 and 5 and both

Project description

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.

>> from fizzbuzz.fizzbuzz import looprange
>> looprange('50')

Output

capture

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fizzbuzzy-0.0.1.tar.gz (2.1 kB view details)

Uploaded Source

File details

Details for the file fizzbuzzy-0.0.1.tar.gz.

File metadata

  • Download URL: fizzbuzzy-0.0.1.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for fizzbuzzy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 72b0b300815e6f94842a8d5fb3917cff207faf732b446fdb42b8742c88432074
MD5 a424660ad11bd8811281a70247c0402a
BLAKE2b-256 de9ef465489540c965ca535078112894b331b4cadeca0e213a81e591e8a4864c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page