FizzFizz by rolf

for i in range(1,101):
 s=""
 while i%3==0:s+="Fizz";i/=3
 while i%5==0:s+="Buzz";i/=5
 print s or i

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page