Write a function, that returns a strings of Fizz, Buzz or FizzBuzz. Signature on python:
def fizz_buzz(fizz: int, buzz: int, seq: Iterable) -> str:
...
Where
fizz, buzz - any natural number
seq - any sequence of natural numbers
Example:
fizz_buzz(fizz=3, buzz=5, seq=range(1, 16))
1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
The input data will always be correct.
def fizz_buzz(fizz, buzz, seq):
... # your code
import codewars_test as test
# TODO Write tests
import solution # or from solution import example
# test.assert_equals(actual, expected, [optional] message)
@test.describe("Example")
def test_group():
@test.it("test case")
def test_case():
test.assert_equals(1 + 1, 2)