PY/MATH
Challenges
Logic & reasoning · Medium

FizzBuzz Up to N

Write `fizzbuzz(n)` returning a list of length n. For each i in 1..n: 'FizzBuzz' if divisible by 15, 'Fizz' by 3, 'Buzz' by 5, else the number as a string.

solution.py○ Loading…
Loading...
Console
Test cases
fizzbuzz(5)PENDING
HiddenPENDING
Hints