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

10 lines
154 B
Python
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
for n in range(1,101):
response = ''
if not n%3:
response += 'Fizz'
if not n%5:
response += 'Buzz'
print(response or n)