Skip to content

WillMoggridge/python-fizzbuzzes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-fizzbuzzes

This Python package is designed to return FizzBuzz from a variety of methods!

Mostly this is just a bit of fun inspired by a post at reddit about this blog post. The plan is to add silly methods to this now and again.

The template of this package was created with PasteScript

Quick examples:

from fizzbuzzes import FizzBuzz

# Create FizzBuzz object, optionally specifying type.
fizzbuzz = FizzBuzz(
    class_type=FizzBuzz.TYPE_MAP_SLICE
)

# FizzBuzz generator into a list
fizzbuzz_output = list(fizzbuzz.generate(limit=100))

# Get a string of FizzBuzz, optionally specifying separator
fizzbuzz_string = fizzbuzz.string(
    limit=100,
    separator="\n"
)

# Print out FizzBuzz, optionally specifying separator
fizzbuzz.print_output(
    limit=100,
    separator="\n"
)

About

This Python package is designed to return FizzBuzz from a variety of methods!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages