Skip to content

Instantly share code, notes, and snippets.

@iamkoch
Created October 19, 2012 12:46
Show Gist options
  • Save iamkoch/3918073 to your computer and use it in GitHub Desktop.
Save iamkoch/3918073 to your computer and use it in GitHub Desktop.
FizzPython
print ", ".join(["FizzBuzz" if i % 15 == 0 else "Fizz" if i % 5 == 0 else "Buzz" if i % 3 == 0 else str(i) for i in range(15+1)])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment