Push Tracker
experiments-07-07-12-local-.../agentic_scratch/qwen3.6-27b/t1_fizzbuzz/fizzbuzz.py

16 lines
363 B
Python
Raw Permalink Normal View History

G
2026-07-12 21:35:10 -04:00
def fb(n):
result = []
for i in range(1, n + 1):
if i % 3 == 0 and i % 5 == 0:
result.append('FizzBuzz')
elif i % 3 == 0:
result.append('Fizz')
elif i % 5 == 0:
result.append('Buzz')
else:
result.append(str(i))
return result
if __name__ == '__main__':
print(fb(15))