Challenges medium FizzBuzz 75 XP
Python Challenge · Learn Python 3

FizzBuzz

Read n, then print the numbers 1 to n, one per line — but print Fizz for multiples of 3, Buzz for multiples of 5, and FizzBuzz for multiples of both.

Example 1

Input
5
Expected Output
1
2
Fizz
4
Buzz
solution.py
Run the examples to test your code, then Submit to run all hidden tests.
🚀

Create a free account

Sign up free to run and submit solutions, earn points, and unlock badges.

Create Free Account

Already have one? Log in