Skip to content

Instantly share code, notes, and snippets.

@death667b
Created June 9, 2016 23:22
Show Gist options
  • Save death667b/962cd746e4a2d206bf2ca29398b7c102 to your computer and use it in GitHub Desktop.
Save death667b/962cd746e4a2d206bf2ca29398b7c102 to your computer and use it in GitHub Desktop.
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