Step 1 of 1

Step 1 · Challenges

Checkpoint challenges

Five short programs that mix this chapter's comparisons, if / elif / else and and / or / not with everything from Chapters 1 to 4. The tests try the edges, so think about > against >= every time.

Fizz Buzz

Ask for a whole number. Print FizzBuzz if it divides exactly by both 3 and 5, Fizz if it divides by 3, Buzz if it divides by 5, and otherwise the number itself.

0 of 5 passed. Pass them all to finish the lesson.Next lesson: 6.1 Repeating with for →
fizzbuzz.py

Output

Press Run to see what your program prints.