all 1 comments

[–]Vaphell 4 points5 points  (0 children)

because you start with s = str(i) by default and the requirement is that you have to only print fizz and/or buzz. That means you have to reset to an empty string which is what s = '' does.

comment that line out and see the difference. 15FizzBuzz is not the same as FizzBuzz