Test a Fizz Pop Game
Write the tests · Beginner · about 8 min
fizz_pop(n) plays a counting game for a whole number n of 1 or more. It returns the text "FizzPop" when n divides by both 3 and 7, "Fizz" when it divides by 3 only, "Pop" when it divides by 7 only, and otherwise the number as text, like "4".
Write test_ functions with assert that pass on a correct version and fail on broken ones.
Examples
fizz_pop(9) # "Fizz" fizz_pop(14) # "Pop" fizz_pop(4) # "4"
def test_multiple_of_three():
assert fizz_pop(3) == "Fizz"
The solution opens after your first Check.