Created
December 22, 2016 08:04
-
-
Save peroon/9fb518ce4b5217d1eeb9e8efccae08be to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def fizzbuzz(n): | |
| for i in range(1, n+1): | |
| if i % 15 == 0: | |
| print "FizzBuzz" | |
| elif i % 3 == 0: | |
| print "Fizz" | |
| elif i % 5 == 0: | |
| print "Buzz" | |
| else: | |
| print i | |
| fizzbuzz(100) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment