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
Release files for selee 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| selee-0.2-py3-none-any.whl | Python 3 | none | any | Details |
Release files / selee-0.2-py3-none-any.whl
| Download URL | selee-0.2-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e0ec0223f2eeca75f91728142e7f3486817bf3ab4ad6f74a8a3091481a0a86ff
|
|
BLAKE2b-256 checksum How to use checksums |
6b9de186a4baf21050c531460e2ce8f82704b32c465e17c1cdaadb6275db3af6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|