RosettaCodeData/Task/FizzBuzz/Python/fizzbuzz-3.py

10 lines
154 B
Python
Raw Permalink Normal View History

2020-02-17 23:21:07 -08:00
for n in range(1,101):
response = ''
if not n%3:
response += 'Fizz'
if not n%5:
response += 'Buzz'
print(response or n)