Fizz Buzz
Easy 
Given a number n, locate all the multiples of 3, 5, and 15 (3 and 5) in the list 1...n. Replace all multiples of 3 with the word Fizz, and replace all multiples of 5 with the word Buzz. If a number is a multiple of 5 and 3, replace it with FizzBuzz. Sidenote: Use single quotes
Examples:
Input: n = 3 Output: ['1', '2', 'Fizz']
Input: n = 10 Output: ['1', '2', 'Fizz', '4', 'Buzz', 'Fizz', '7', '8', 'Fizz', 'Buzz']
Input: n = 15 Output: ['1', '2', 'Fizz', '4', 'Buzz', 'Fizz', '7', '8', 'Fizz', 'Buzz', '11', 'Fizz', '13', '14', 'FizzBuzz']
Hint 1
How could you loop through each item in a list 1...n?
Hint 2
How could you check if the number is a multiple of 3, 5, or 15?
Hint 3
You can use modulus (%) to check if a number is divisible by something. Ex. 15 % 5 = 0
Test Cases
You haven't run your program yet.
×
Exercise Submitted!
Fizz Buzz