Skip to main content

selee_pk Package

selee_pk 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

Installation

Python>=3.6 is needed. pip install selee_pk

Quick Start

This is a short introduction and quickstart for the selee_pk package.

fizz_buzz application starts by installing selee package

from selee_pk 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_pk 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-pk 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for selee-pk 0.1
File Size Uploaded
selee_pk-0.1.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for selee-pk 0.1
File Interpreter ABI Platform
selee_pk-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.5 kB

Release files / selee_pk-0.1.tar.gz

Download URL selee_pk-0.1.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
de5adbd94d2a333c52dbff4c065dd72d8366863f75386cec97f2c01f147ff354
BLAKE2b-256 checksum
How to use checksums
1c70b6afd96a3bed470fc06940d93d9efaef66d92342bee63469a3fe91cad04a
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

Release files / selee_pk-0.1-py3-none-any.whl

Download URL selee_pk-0.1-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
89b317f366b970fbbc4e778a53c7d2da6b045bfbde9bef4c99b5709815a2809a
BLAKE2b-256 checksum
How to use checksums
c40bc7ebd100f31f0ac4e88f38c528063e966586552ad672883190cecda5e918
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

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page