Skip to content

Instantly share code, notes, and snippets.

@sedaghatfar
Created May 16, 2013 20:09
Show Gist options
  • Save sedaghatfar/5594687 to your computer and use it in GitHub Desktop.
Save sedaghatfar/5594687 to your computer and use it in GitHub Desktop.
for i in range(1,101):
s = str(i)
if i % 3 == 0 or i % 5 == 0:
s = " "
if i % 3 == 0:
s = s + "Fizz"
if i % 5 == 0:
s = s + "Buzz"
print (s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment