LearnPy Hub
← Functions problems
Hard

FizzBuzz Function

Write fizzbuzz(n) returning 'Fizz' for multiples of 3, 'Buzz' for 5, 'FizzBuzz' for both, else the number as text. Read n and print fizzbuzz(i) for i = 1..n on one line.

Input

One integer n ≥ 1.

Output

One line.

Sample 1

Input
15
Output
1 2 Fizz 4 Buzz Fizz 7 8 Fizz Buzz 11 Fizz 13 14 FizzBuzz

Sample 2

Input
1
Output
1
solution.py
Output appears here
FizzBuzz Function · Python practice problem · LearnPy Hub