Iterate from numbers 1 to 15 inclusive. For multiples of 3, print "Fizz". For multiples of 5, print "Buzz". For multiples of both 3 and 5, print "FizzBuzz". For all other numbers, print the number itself.
Instructions
Use a `for i in range(1, 16):` loop.
Check for multiples of both 3 and 5 first (`i % 15 == 0`).
Print each item on a new line.
Progressive Hints (1 / 2)
Order of if-elif conditions matters: check `i % 3 == 0 and i % 5 == 0` first.
solution.py
Ctrl+Enter to run
Loading Monaco Editor...
Press Ctrl+Enter or click "Run Code" to execute your solution in the browser.