Skip to content

Instantly share code, notes, and snippets.

@calthoff
Created April 10, 2018 03:27
Show Gist options
  • Select an option

  • Save calthoff/87dc8cfcb01a27fcbd9585eaf0f369ac to your computer and use it in GitHub Desktop.

Select an option

Save calthoff/87dc8cfcb01a27fcbd9585eaf0f369ac to your computer and use it in GitHub Desktop.
def fizz_buzz():
for i in range(1, 101):
if i % 3 == 0 and i % 5 == 0:
print("FizzBuzz")
elif i % 3 == 0:
print("Fizz")
elif i % 5 == 0:
print("Buzz")
else:
print(i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment