Coding
Workshop

Fall 2021
course
site
-->

FizzBuzz

Write a program that prints the numbers from 1 to 100. But for multiples of three print the word “Fizz” (without the quotes) instead of the number and for the multiples of five print “Buzz”, one item per line. For numbers which are multiples of both three and five print “FizzBuzz”.

For example, if the program were in a file fizzbuzz.py then

$ python fizzbuzz.py
1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
16
... and so on.

Describe clearly in a comment how to compile (if needed) and run your program on jupyter.bennington.

What would it take to extend it so that for multiples of seven it prints "Baz"?

https://cs.bennington.college /courses /fall2021 /coding /notes /fizzbuzz-task
last modified Sat September 4 2021 9:59 pm