Ad

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