Solution: Loops, Operators, and Exception Handling
Look at the solution to the previous challenge.
Loops solution
Let's have a look at the problem statement of the challenge.
Problem statement
FizzBuzz is a group game for children to teach them about division. Players take turns to count incrementally, replacing any number divisible by three with the word fizz
, any number divisible by five with the word buzz
, and any number divisible by both with fizzbuzz
. Write code that outputs a simulated FizzBuzz game that counts up to
Get hands-on with 1400+ tech skills courses.