FizzBuzz
easyBasics10 XP
Return a list of strings for the numbers 1 to n: "Fizz" for multiples of 3, "Buzz" for multiples of 5, "FizzBuzz" for multiples of both, and the number itself (as a string) otherwise.
Examples
- Input: n = 5Output: ["1", "2", "Fizz", "4", "Buzz"]
Examples use JSON: true/false/null are True/False/None in Python.