package development exercise
Project description
selee Package
selee is a python package that contains the function fizz_buzz()
in selee_module.
The fizz_buzz()
function accepts a single argument, x and returns the output as string or the same type of the input x, using the below logic:
- Multiples of 3 returns “Fizz” instead of the number
- Multiples of 5 return “Buzz”.
- For integers which are multiples of both 3 and 5 return “FizzBuzz”
- Any other cases return the input
Quick Start
This is a short introduction and quickstart for the selee
package.
fizz_buzz
application starts by installing selee package
from selee import selee_module
Users can check the result of the fizz_buzz
function by putting the input x inside the parentheses.
selee_module.fizzbuzz(x)
Examples
from selee import selee_module
selee_module.fizzbuzz(2)
>> 2
selee_module.fizzbuzz(3)
>> Fizz
selee_module.fizzbuzz(5)
>> Buzz
selee_module.fizzbuzz(15)
>> FizzBuzz
Test
Seven test cases are included in the unit_test.py
.
Below is the code for running those test cases.
python -m unittest tests/unit_test.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file selee-0.2-py3-none-any.whl
.
File metadata
- Download URL: selee-0.2-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e0ec0223f2eeca75f91728142e7f3486817bf3ab4ad6f74a8a3091481a0a86ff
|
|
MD5 |
f219a47f7ae022761ea211ec50260933
|
|
BLAKE2b-256 |
6b9de186a4baf21050c531460e2ce8f82704b32c465e17c1cdaadb6275db3af6
|