Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Fizzbuzz in Python
for x in range (1, 101):
if x % 3 == 0 and x % 5 == 0:
print "FizzBuzz"
elif x % 3 == 0:
print "Fizz"
elif x % 5 == 0:
print "Buzz"
else:
print x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.