FizzBuzz Without Repetition

code Programming military_tech RECON-5
info
You are not signed in.

You can read the task, take hints and check your answer — but nothing is saved. No XP, no skill points, and this task will not be marked complete.

assignment Your task

Write `classify(n)` that returns `'FizzBuzz'` when n divides by both 3 and 5, `'Fizz'` for 3, `'Buzz'` for 5, and the number as a string otherwise.

What this proves: Order conditional branches from most specific to least specific.

terminal Code / Terminal Workspace

lightbulb Progressive Hints

Need assistance? You can reveal sequential hints. Each hint applies a minor penalty to your score.

Hint #1 (-10 XP penalty)
Hint #2 (-20 XP penalty)

menu_book Full Solution Walkthrough

If you are completely stuck, you can unlock the full step-by-step walkthrough.