Skip to content

Instantly share code, notes, and snippets.

@uliang
Last active August 3, 2020 15:11
Show Gist options
  • Save uliang/cf7c26bc03e8d1c6761b19964b11e6ec to your computer and use it in GitHub Desktop.
Save uliang/cf7c26bc03e8d1c6761b19964b11e6ec to your computer and use it in GitHub Desktop.
FizzBuzz solution 1
for i in range(1, 100) :
if not any(i%5, i%3) :
print("FizzBuzz")
elif not bool(i%5) :
print("Buzz")
elif not bool(i%3) :
print("Fizz")
else:
print(i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment