# if else

The Wizard's Chanting Game

A wizard plays a number-chanting game with a magic rule: 🪄

  • If the number divides evenly by both 3 and 5, chant FizzBuzz.
  • Otherwise, if it divides evenly by 3, chant Fizz.
  • Otherwise, if it divides evenly by 5, chant Buzz.
  • Otherwise, just chant the number itself.

You're given a number. Print the right chant. For example, 15 → print FizzBuzz, and 7 → print 7.

💡 need a hint?

cond-fizz-or-buzz.py🔒 given lines are locked — write your code in between
loading...