Skip to content

Instantly share code, notes, and snippets.

@phill-tornroth
Forked from tghw/ugly_fizzbuzz.py
Last active August 29, 2015 13:58
Show Gist options
  • Save phill-tornroth/10305184 to your computer and use it in GitHub Desktop.
Save phill-tornroth/10305184 to your computer and use it in GitHub Desktop.
['Fizz' * (not bool(i % 3)) + 'Buzz' * (not bool(i % 5)) for i in xrange(1,101) if i % 3 == 0 or i % 5==0]
@phill-tornroth
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment